You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(2) |
2
(1) |
3
(17) |
4
(9) |
5
(2) |
6
(5) |
7
(8) |
8
(11) |
9
(6) |
10
(6) |
11
(21) |
12
(21) |
13
(17) |
14
(25) |
15
(15) |
16
(2) |
17
|
18
(9) |
19
(22) |
20
(25) |
21
(31) |
22
(19) |
23
(2) |
24
(5) |
25
(19) |
26
(10) |
27
(13) |
28
(14) |
29
(20) |
30
(5) |
31
(9) |
|
|
|
|
|
|
From: John H. <jd...@gm...> - 2010-01-25 14:58:59
|
On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten <dim...@gm...> wrote: > Hi Forum, > I am using matplotlib in a PyQt4 App. > I wanted to add a watermark-type pictures to the standard white background > of the canvas. Does the following help? http://matplotlib.sourceforge.net/search.html?q=codex+watermark |
From: Dimitri L. <dim...@gm...> - 2010-01-25 14:19:40
|
Hi Forum, I am using matplotlib in a PyQt4 App. I wanted to add a watermark-type pictures to the standard white background of the canvas. My current version of this is : def getwatermark(self): factor=1.0 #factor for scaling image im1=QtGui.QPixmap(':/watermark.png') im=im1.toImage() self.watermark_ratio=(im.height()/factor)/(im.width()/factor) ival0=[] for i in range(im.width()):#range(2): #range(im.width()): for j in range(im.height()):#range(3): #range(im.height()): if int(im.pixel(i,j))==0: ival0.append(43) else: ival0.append(40) self.watermark=reshape(ival0,(im.width(),im.height())) def placewatermark(self,canvas,axes): try: if self.version=='1': grayfactor=24 #factor for grayscale canvassize=canvas.size() if canvas.__class__.__name__=='MyPFCanvas': #for PF, the IV canvas is split in two figures... bottom=self.IVTab.IVcanvas.vert[0]._scalable_size spacing=self.IVTab.IVcanvas.vert[1]._scalable_size top=self.IVTab.IVcanvas.vert[2]._scalable_size correctionY=top/(top+spacing+bottom) else: correctionY=1 origaxes=axes.axis() xrange=origaxes[1]-origaxes[0] yrange=origaxes[3]-origaxes[2] xcanvas=canvassize.width() ycanvas=canvassize.height()*correctionY if (xcanvas/float(ycanvas))>self.watermark_ratio: yfig=yrange centery=origaxes[2] xfig=self.watermark_ratio*yrange xfig=(yfig*self.watermark_ratio)*(xrange/yrange)*(ycanvas/float(xcanvas)) centerx=origaxes[0]+(xrange-xfig)/2 else: xfig=xrange centerx=origaxes[0] yfig=(xfig/self.watermark_ratio)*(yrange/xrange)/(ycanvas/float(xcanvas)) centery=origaxes[2]+(yrange-yfig)/2 axes.imshow(self.watermark,origin='lower',extent=(centerx,centerx+xfig,centery,centery+yfig),vmin=0,vmax=43,cmap=cm.gray) #,extent=(centerx,centerx+xfig,centery,centery+yfig),, axes.axis('auto') axes.axis(origaxes) canvas.draw() except: ## print "no watermark placeD" pass What is the best way to do this ? Regards, Dimitri |
From: Philipp B. <li...@ro...> - 2010-01-25 06:28:50
|
Dear listmembers, I experienced a problem with matplotlib yesterday that caused me a lot of headache and I don't know whether this is a bug or if I forgot something. What I want is to plot different datasets in different plots in different files. My code looks like that: ####################### from pylab import fft, ifft, var, average, real, show import matplotlib.pyplot as plt def process_file(filename, fig_nr): plt.figure(fig_nr) plt.clf() plt.subplot(211) plt.plot(s, alt, '-') plt.subplot(212) plt.plot(s,map(lambda x: x*3.6,speed)) plt.savefig(filename+".png") process_file("foo1.tcx", 1) process_file("foo2.tcx", 2) process_file("foo3.tcx",3) ########################## The problem here is that in the plots for file foo2 the data from foo1 is included, in the plots for foo3 the data of foo1 and foo2. I thought that I paid respect to this behaviour with plt.figure(), on stackoverflow I read about the plt.clf() - thing but nothing happened. I tried to make fig_nr a hash over the filename or leave it blank (like suggested in the documentation) but this had no effect and I ended up with the additional parameter (fig_nr in the example above) which also did not work. Is this maybe a bug or did I forget an important thing? I'm running Debian sid with python-matplotlib 0.99.1.2-2 (I hope the numbering from Debian and matplotlib is similar). Best regards, Philipp Bender |
From: Phillip M. F. <pfe...@ve...> - 2010-01-25 03:19:00
|
Jeff Whitaker wrote: > Dr. Phillip M. Feldman wrote: >> Jeff Whitaker wrote: >> >>> <snip> >>> Philip: That's an error from the proj4 c library saying that it >>> didn't like one of the parameters you used to define the >>> projection. Since you didn't include the parameters you used, I >>> can't say which one is the culprit. >>> >>> -Jeff >>> >>> >> >> > Philip: I believe that lat_0 must be zero for the geostationary > projection (you have to be looking down on the equator). I usually > leave the lat_0 parameter off entirely, in which case zero is > assumed. I'll try to catch that and raise a more insightful error > message. > > -Jeff > Hm. I suppose that you are right. "Geostationary" does imply that the viewer is 35786.2 km above the equator. What would be more useful is a geosynchronous projection. This would allow the viewer to be located at any latitude. Geostationary is a special case of geosynchronous. Even more useful than a geosynchronous projection is a camera projection that allows one to place the viewer at any location in space (i.e., any latitude and longitude for the nadir point, and any altitude). (I wrote something like this is Fortran 25 years ago). Generalizing the existing geostationary projection to turn it into a camera projection would make it far more useful. I hope that someone will consider making this change. Phillip |
From: Jeff W. <js...@fa...> - 2010-01-25 03:03:16
|
Dr. Phillip M. Feldman wrote: > Jeff Whitaker wrote: > >> <snip> >> Philip: That's an error from the proj4 c library saying that it didn't >> like one of the parameters you used to define the projection. Since you >> didn't include the parameters you used, I can't say which one is the >> culprit. >> >> -Jeff >> >> > > Philip: I believe that lat_0 must be zero for the geostationary projection (you have to be looking down on the equator). I usually leave the lat_0 parameter off entirely, in which case zero is assumed. I'll try to catch that and raise a more insightful error message. -Jeff |
From: Pellegrini E. <eri...@ya...> - 2010-01-24 20:45:37
|
Hello everybody, I have a question concerning the redrawing of one/several figures. Say that I have the following (very) simple code: ion() f1 = figure(1) plot([1,2,3,4]) f2 = figure(2) plot([1,1,1,1]) and that I killed f1 and f2 figures by clicking on their respective right-top corner. Is there a way to redisplay f1 and/or f2 in the state they were just before destroying them ? thank you very much for your help best regards Eric |
From: Dr. P. M. F. <pfe...@ve...> - 2010-01-24 18:25:25
|
Jeff Whitaker wrote: > > <snip> > Philip: That's an error from the proj4 c library saying that it didn't > like one of the parameters you used to define the projection. Since you > didn't include the parameters you used, I can't say which one is the > culprit. > > -Jeff > I've boiled the code down to something small that demonstrates the problem. Thanks! http://old.nabble.com/file/p27297693/temp.py temp.py -- View this message in context: http://old.nabble.com/strange-error-when-attempting-to-generate-a-map-using-%27geos%27-projection-tp27292730p27297693.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Gökhan S. <gok...@gm...> - 2010-01-24 17:54:47
|
Hello, I have thought of this might interesting to share. Register at www.sagenb.org or try on your local Sage-notebook and using the following code: # Simple example demonstrating how to interact with matplotlib directly. # Comment plt.clf() to get the plots overlay in each update. # Gokhan Sever & Harald Schilly (2010-01-24) from scipy import stats import numpy as np import matplotlib.pyplot as plt @interact def plot_norm(loc=(0,(0,10)), scale=(1,(1,10))): rv = stats.norm(loc, scale) x = np.linspace(-10,10,1000) plt.plot(x,rv.pdf(x)) plt.grid(True) plt.savefig('plt.png') plt.clf() A very easy to use example, also well-suited for learning and demonstration purposes. Posted at: http://wiki.sagemath.org/interact/graphics#Interactwithmatplotlib Have fun ;) -- Gökhan |
From: Jeff W. <js...@fa...> - 2010-01-24 14:06:10
|
Dr. Phillip M. Feldman wrote: > I’ve been experimenting with basemap, and have been able to make maps using > the orthographic and polyconic projections. When I try to generate a map > using the geostationary projection, I get the error message shown below. I > haven’t been able to make head or tail of this message; any advice will be > appreciated. > > Phillip > > RuntimeError Traceback (most recent call last) > > C:\Phillip\pmap.py in <module>() > 6163 > 6164 # Create basemap object: > -> 6165 map= Basemap(**map_parms) > 6166 ax= fig.add_axes([0.1,0.08,0.7,0.82]) > 6167 > > C:\Python25\lib\site-packages\mpl_toolkits\basemap\__init__.pyc in > __init__(self, llcrnrlon, llc > rnrlat, urcrnrlon, urcrnrlat, llcrnrx, llcrnry, urcrnrx, urcrnry, width, > height, projection, res > olution, area_thresh, rsphere, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, > lon_2, no_rot, suppres > s_ticks, satellite_height, boundinglat, fix_aspect, anchor, ax) > 680 > 681 # initialize proj4 > --> 682 proj = > Proj(projparams,self.llcrnrlon,self.llcrnrlat,self.urcrnrlon,self.urcrnrl > at) > 683 > 684 # make sure axis ticks are suppressed. > > C:\Python25\lib\site-packages\mpl_toolkits\basemap\proj.pyc in > __init__(self, projparams, llcrnr > lon, llcrnrlat, urcrnrlon, urcrnrlat, urcrnrislatlon) > 117 urcrnry = -llcrnry > 118 elif self.projection == 'geos': > --> 119 self._proj4 = pyproj.Proj(projparams) > 120 # find major and minor axes of ellipse defining map proj > region. > 121 # h is measured from surface of earth at equator. > > C:\Python25\lib\site-packages\mpl_toolkits\basemap\pyproj.pyc in > __new__(self, projparams, **kwa > rgs) > 146 kvpairs.append(kvpair+' ') > 147 projstring = ''.join(kvpairs) > --> 148 return _Proj.__new__(self, projstring) > 149 > 150 def __call__(self, *args, **kw): > > C:\Python25\lib\site-packages\mpl_toolkits\basemap\_proj.pyd in > _proj.Proj.__cinit__ (src/_proj. > c:587)() > 23 > 24 > ---> 25 > 26 > 27 > > RuntimeError: unknown prime meridian conversion id > WARNING: Failure executing file: <pmap.py> > > Philip: That's an error from the proj4 c library saying that it didn't like one of the parameters you used to define the projection. Since you didn't include the parameters you used, I can't say which one is the culprit. -Jeff |
From: Dr. P. M. F. <pfe...@ve...> - 2010-01-24 06:59:36
|
I’ve been experimenting with basemap, and have been able to make maps using the orthographic and polyconic projections. When I try to generate a map using the geostationary projection, I get the error message shown below. I haven’t been able to make head or tail of this message; any advice will be appreciated. Phillip RuntimeError Traceback (most recent call last) C:\Phillip\pmap.py in <module>() 6163 6164 # Create basemap object: -> 6165 map= Basemap(**map_parms) 6166 ax= fig.add_axes([0.1,0.08,0.7,0.82]) 6167 C:\Python25\lib\site-packages\mpl_toolkits\basemap\__init__.pyc in __init__(self, llcrnrlon, llc rnrlat, urcrnrlon, urcrnrlat, llcrnrx, llcrnry, urcrnrx, urcrnry, width, height, projection, res olution, area_thresh, rsphere, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, lon_2, no_rot, suppres s_ticks, satellite_height, boundinglat, fix_aspect, anchor, ax) 680 681 # initialize proj4 --> 682 proj = Proj(projparams,self.llcrnrlon,self.llcrnrlat,self.urcrnrlon,self.urcrnrl at) 683 684 # make sure axis ticks are suppressed. C:\Python25\lib\site-packages\mpl_toolkits\basemap\proj.pyc in __init__(self, projparams, llcrnr lon, llcrnrlat, urcrnrlon, urcrnrlat, urcrnrislatlon) 117 urcrnry = -llcrnry 118 elif self.projection == 'geos': --> 119 self._proj4 = pyproj.Proj(projparams) 120 # find major and minor axes of ellipse defining map proj region. 121 # h is measured from surface of earth at equator. C:\Python25\lib\site-packages\mpl_toolkits\basemap\pyproj.pyc in __new__(self, projparams, **kwa rgs) 146 kvpairs.append(kvpair+' ') 147 projstring = ''.join(kvpairs) --> 148 return _Proj.__new__(self, projstring) 149 150 def __call__(self, *args, **kw): C:\Python25\lib\site-packages\mpl_toolkits\basemap\_proj.pyd in _proj.Proj.__cinit__ (src/_proj. c:587)() 23 24 ---> 25 26 27 RuntimeError: unknown prime meridian conversion id WARNING: Failure executing file: <pmap.py> -- View this message in context: http://old.nabble.com/strange-error-when-attempting-to-generate-a-map-using-%27geos%27-projection-tp27292730p27292730.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Brendan B. <bre...@br...> - 2010-01-23 19:18:09
|
Brendan Barnwell wrote: > Hi, > > I decided to upgrade to matoplotlib 0.99.1. I'm on Windows XP. I > downloaded matplotlib-0.99.1.win32-py2.5.exe and ran it. It seemed to > install. Now when I try "from matplotlib import pyplot", Python > crashes with one of those "pythonw has encountered a problem and needs > to close" messages. I tried uninstalling matplotlib, and I also > uninstalled SciPy and upgraded that to the latest version (0.7.1) and > then reinstalled matplotlib. Still crashes. Importing numpy on its > own works, as does importing matplotlib on its own. > > How can I fix this problem? I forgot to mention that I'm using Python 2.5.2. Has anyone else encountered this problem? Best wishes, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown |
From: Jeff L. <lay...@at...> - 2010-01-23 15:36:15
|
Good morning, I hate to ask such a newbie question but I am a newb with matplotlib :) I want to create a bar chart with, for example, 6 "bars". I want the first 3 bars to be one color and the second 3 bars to be another color. I'm not entirely sure how to do this - any suggestions? Alternatively, I would like to create 6 bars where every other bar is a different color. For example, gray, red, gray, red, gray, red. Any suggestions on this? TIA! Jeff |
From: Eric F. <ef...@ha...> - 2010-01-22 23:58:21
|
Filipe Pires Alvarenga Fernandes wrote: > Dear matplotlib users, > > I've been successful to plot 2-D lines with dates in the x-axis directly > like: > > > plot(time,dens[1,:]) > > Where times starts at 1998-01-11 01:00:00 and ends at 1998-02-06 > 08:00:00 (633 elements). and dens has 10 elements. Now I'm trying to > make a contour plot like: > > > CS = contourf(tempo, depth, dens) > > But I cannot make the dates appear, the plot shows only the "date number". This is a bug, now fixed in svn. As a workaround, try something like this after the call to contour: ax = gca() ax.xaxis_date() draw() (The draw() is needed only if you are working interactively.) Eric > > > Thanks for any help, Filipe > > ps: > matplotlib version: 0.99.1.1 > backend: Qt4Agg > llinux Opensuse 11.2 > > > ***************************************************** > Filipe Pires Alvarenga Fernandes > > Email: fal...@um... > <mailto:fal...@um...> > oc...@gm... <mailto:oc...@gm...> > > http://ocefpaf.tiddlyspot.com/ > ***************************************************** > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Christopher B. <Chr...@no...> - 2010-01-22 23:41:42
|
C M wrote: > For those who you wxPython with matplotlib, does anyone know how to do > this or can point me in the right direction? > > I would like to pick a point (that part is fine) and then place a > wxFrame near to that point. I'm using something like: > > #Note: self is a wxPanel that contains the matplotlib plot. > mouseLocation = wx.GetMousePosition() > pos = self.ScreenToClient(mouseLocation) > self.popup.Move(pos) > > but this results in the frame being completely displaced from the > picked point. just thinking out loud here, but when you call self.popup.Move(), I think that's screen coordinates, but you called self.ScreenToClient(). I think you want something like: mouseLocation = wx.GetMousePosition() self.popup.Move(pos) Or you could get the coords from the mouse event instead, which will be in client coords. I'd print out some of those coords, so can make sense of them -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: C M <cmp...@gm...> - 2010-01-22 23:04:45
|
For those who you wxPython with matplotlib, does anyone know how to do this or can point me in the right direction? I would like to pick a point (that part is fine) and then place a wxFrame near to that point. I'm using something like: #Note: self is a wxPanel that contains the matplotlib plot. mouseLocation = wx.GetMousePosition() pos = self.ScreenToClient(mouseLocation) self.popup.Move(pos) but this results in the frame being completely displaced from the picked point. I've tried a number of different approaches and am stuck. Any ideas would be appreciated. Che |
From: Andrew K. <ndr...@gm...> - 2010-01-22 22:21:36
|
So twiny() is up and running with a FixedLocator and Formatter for the ticks on the upper xAxis but am now unable to rotate these tick labels. Is there a special method to set the rotation, etc with FixedLocators? On Thu, Jan 21, 2010 at 3:09 PM, Jae-Joon Lee <lee...@gm...> wrote: > On Thu, Jan 21, 2010 at 2:31 PM, Andrew Kelly <ndr...@gm...> wrote: > > Turning label2On = true turned on the labels as directed. However, the > > function label2.set_text("New Tick Label") does not update the > > actual text. I can set_size(), etc and it works, but set_text() does not > > update. Any ideas why? > > > > You should not call set_text directly, instead you need to call > Axis.set_ticklabels. > If you want the top (right) ticks have different ticklabels than the > bottom (left) ticks, that is not possible. > You need to make another axes by calling twin*. > > -JJ > |
From: Michael C. <mc...@ca...> - 2010-01-22 20:06:12
|
On 01/22/2010 12:02 PM, Eric Firing wrote: > C M wrote: >> On Fri, Jan 22, 2010 at 2:34 PM, Michael Cohen<mc...@ca...> wrote: >>> Hi all, >>> I am making a plot with circle symbols, so I have 'o' in the plot() command. >>> How do I make those circles transparent? I'd like the center of the >>> circles to allow the catter plot underneath the circle location to show >>> through. > > That will make the circle borders transparent as well. If you don't > want the circles filled at all, use mfc='none' (a string, not the Python > None object). Thanks, this is what I was after. Cheers Michael |
From: Eric F. <ef...@ha...> - 2010-01-22 20:02:23
|
C M wrote: > On Fri, Jan 22, 2010 at 2:34 PM, Michael Cohen <mc...@ca...> wrote: >> Hi all, >> I am making a plot with circle symbols, so I have 'o' in the plot() command. >> How do I make those circles transparent? I'd like the center of the >> circles to allow the catter plot underneath the circle location to show >> through. That will make the circle borders transparent as well. If you don't want the circles filled at all, use mfc='none' (a string, not the Python None object). Eric >> >> Cheers >> Michael > > In your plot() command you can set the alpha value. Try setting > mfc='b', for example, (marker face color = blue) and then alpha = .3. > and then you can try different values of alpha to see how transparent > you want it. > > Che > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: C M <cmp...@gm...> - 2010-01-22 19:57:05
|
On Fri, Jan 22, 2010 at 2:34 PM, Michael Cohen <mc...@ca...> wrote: > Hi all, > I am making a plot with circle symbols, so I have 'o' in the plot() command. > How do I make those circles transparent? I'd like the center of the > circles to allow the catter plot underneath the circle location to show > through. > > Cheers > Michael In your plot() command you can set the alpha value. Try setting mfc='b', for example, (marker face color = blue) and then alpha = .3. and then you can try different values of alpha to see how transparent you want it. Che |
From: Michael C. <mc...@ca...> - 2010-01-22 19:34:42
|
Hi all, I am making a plot with circle symbols, so I have 'o' in the plot() command. How do I make those circles transparent? I'd like the center of the circles to allow the catter plot underneath the circle location to show through. Cheers Michael |
From: Gökhan S. <gok...@gm...> - 2010-01-22 15:57:31
|
It is very simple to change key-assignment. Take a look at the backend_bases.py code (search for event.key instances) : elif event.key == 'L': I was thinking to move y-scaling to "y" and x-scaling to "x" but x and y are assigned to something else ( http://matplotlib.sourceforge.net/users/navigation_toolbar.html) For me toggling "k" is simpler for me than doing Shift-L. Maybe these options could be provided in the matplotlibrc file. Users can make their key mapping based on their choice. That requires some more coding :) On Fri, Jan 22, 2010 at 1:59 AM, Matthias Michler <Mat...@gm...>wrote: > Hi Gökhan, Hi list members, > > This is really a missing feature in matplotlib in my opinion and it's great > that you took the time to make an suggestion, but I would prefer capital > "L" > for the xaxis-scaling like gnuplot although I'm not sure this is possible. > > What do you and other list members think about that? > > Kind regards, > Matthias > > On Thursday 21 January 2010 19:45:37 Gökhan Sever wrote: > > Hello, > > > > "l" key does the log - linear scaling for y-axis. I have made a minor > > change to use "k" for x-axis scaling. > > > > Patch added. Feel free to add if you find it useful. > > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan |
From: Gökhan S. <gok...@gm...> - 2010-01-22 15:50:05
|
This fixes my upside-down looking top x-labels. I must have missed your updates. Thanks for the quick solution again. On Thu, Jan 21, 2010 at 10:36 PM, Jae-Joon Lee <lee...@gm...> wrote: > The rotation of the ticklabels are now measured relative to the > direction of the ticks. While I understand this can be confusing at > first, this is kind of necessary to support axis along an arbitrary > path. > > For example, the default rotation for the ticklabels in the top axis > is 180, not 0 (but it looks like 0). So, in your case, the angle > should be 190, instead of 10 (at line 117). Let me know if there is > any other issue. > > -JJ > > > > On Thu, Jan 21, 2010 at 8:34 PM, Gökhan Sever <gok...@gm...> > wrote: > > JJ, > > > > One thing is still little mysterious. My top xticks are reversed. > > > > See in the saved image: > http://img46.imageshack.us/img46/3849/imagevp.png > > > > The code that produces that script: > > http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py > > > > Any ideas? > > > > > > On Thu, Jan 21, 2010 at 5:45 PM, Jae-Joon Lee <lee...@gm...> > wrote: > >> > >> On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever <gok...@gm...> > >> wrote: > >> > Yes, it is running from the latest trunk check-out. > >> > >> The internals of how ticks, ticklables work in the svn version have > >> significantly changed, which I hope is an improvement. Unfortunately, > >> "_label_angles" is deprecated and should not be used. Instead, try, > >> > >> ax.axis["right"].label.set_axis_direction("left") > >> > >> The documentation is yet to be written, but there are some examples > >> you may take a look. > >> > >> doc/mpl_toolkits/axes_grid/figures/demo_axis_direction.py > >> doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py > >> doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py > >> > >> Regards, > >> > >> -JJ > > > > > > > > -- > > Gökhan > > > -- Gökhan |
From: Christoph G. <cg...@uc...> - 2010-01-22 08:22:58
|
What does the command `python.exe -v -c "from matplotlib import pylab"` say? MPL 0.99.1 contains a bug (#2903460) that crashes the _path module on slow Pentium CPUs (at least when using Python 2.6). A updated installer is available at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. It might help to add the path where python.exe is installed to the Windows search path. E.g. try `SET PATH=C:\Python25;%PATH%` before running your program. Christoph On 1/21/2010 11:06 PM, Brendan Barnwell wrote: > Hi, > > I decided to upgrade to matoplotlib 0.99.1. I'm on Windows XP. I > downloaded matplotlib-0.99.1.win32-py2.5.exe and ran it. It seemed to > install. Now when I try "from matplotlib import pyplot", Python > crashes with one of those "pythonw has encountered a problem and needs > to close" messages. I tried uninstalling matplotlib, and I also > uninstalled SciPy and upgraded that to the latest version (0.7.1) and > then reinstalled matplotlib. Still crashes. Importing numpy on its > own works, as does importing matplotlib on its own. > > How can I fix this problem? > > Thanks, |
From: Brendan B. <bre...@br...> - 2010-01-22 07:37:40
|
Hi, I decided to upgrade to matoplotlib 0.99.1. I'm on Windows XP. I downloaded matplotlib-0.99.1.win32-py2.5.exe and ran it. It seemed to install. Now when I try "from matplotlib import pyplot", Python crashes with one of those "pythonw has encountered a problem and needs to close" messages. I tried uninstalling matplotlib, and I also uninstalled SciPy and upgraded that to the latest version (0.7.1) and then reinstalled matplotlib. Still crashes. Importing numpy on its own works, as does importing matplotlib on its own. How can I fix this problem? Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown |
From: Pierre de B. <pd...@ul...> - 2010-01-22 07:25:53
|
Hello, What I do is to set it _before_ plotting through the rcParams. rcParams['xtick.labelsize']=24 There is also the possiblity to change that property afterwards with an argument to xticks. xticks(fontsize=24) Pierre Le 21 janv. 10 à 22:36, Brian Larsen a écrit : > How does one set the font size on ticklabels and labels for a figure? > > I would expect something like plot(arange(11), xfontsize=14) to work > but I am not finding any keywords here for that. what am I missing? |