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
(9) |
2
(8) |
3
(6) |
4
(5) |
5
(10) |
6
(1) |
7
|
8
(5) |
9
(3) |
10
(12) |
11
(24) |
12
(28) |
13
(16) |
14
(3) |
15
(10) |
16
(17) |
17
(19) |
18
(10) |
19
(20) |
20
(7) |
21
(11) |
22
(7) |
23
(5) |
24
(4) |
25
(11) |
26
(19) |
27
(1) |
28
(1) |
29
(13) |
30
(7) |
31
(22) |
|
|
|
From: Eric F. <ef...@ha...> - 2011-08-20 17:49:20
|
On 08/20/2011 02:03 AM, Alexa Villaume wrote: > Hello, > > I'm trying to make a contour plot and I'm running into problems when > specifying the coordinates for the plot. I do, > > #Specify coordinates of the surface > delta0=1.0 > delta1=0.1 > x=np.arange(0.0, 6.0, delta0) > y=np.arange(-1.0,3.0, delta1) > > #Contour the arrays. > plt.contour(x, y, O3, O3Level) > > And I get an error that says, > > "TypeError: Length of x must be number of columns in z, > and length of y must be number of rows." > > I don't understand how I'm supposed to get the coordinates for the plot > that I want and make x and y the same shape as z. Any suggestions? Contouring requires data on a grid, so your O3 needs to be a 2-D array of z values, and your x and y need to specify the x and y locations of *those* z values. The orientation is such that the first dimension of the z array corresponds to y, and the second corresponds to x. Eric > > Thanks, > Alexa > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Alexa V. <ale...@gm...> - 2011-08-20 12:03:13
|
Hello, I'm trying to make a contour plot and I'm running into problems when specifying the coordinates for the plot. I do, #Specify coordinates of the surface delta0=1.0 delta1=0.1 x=np.arange(0.0, 6.0, delta0) y=np.arange(-1.0,3.0, delta1) #Contour the arrays. plt.contour(x, y, O3, O3Level) And I get an error that says, "TypeError: Length of x must be number of columns in z, and length of y must be number of rows." I don't understand how I'm supposed to get the coordinates for the plot that I want and make x and y the same shape as z. Any suggestions? Thanks, Alexa |
From: gary r. <gr...@bi...> - 2011-08-20 11:13:24
|
Thanks Eric and JJ, Both of your answers are solutions to my problem actually. I spent a while trying to figure this out and didn't get anywhere. This was an exercise in frustration with matplotlib's documentation. Thankfully this list and its members are here to save us. I assumed it was just a simple flag or option I had missed and this turned out to be the case. I had even tried setting aspect=False when creating my AxesGrid object and setting aspect="auto", but because I was poking around in the dark, I must not have set both at the same time. I also thought I'd seen an example of this somewhere, which is what Eric pointed out, but even thinking I'd seen it, I couldn't find it again. I had looked in the gallery but missed the example - looking back at the gallery now, I think it might be because every other related example uses the jet colour scheme and it simply didn't register. regards, Gary On Sat, Aug 20, 2011 at 6:49 PM, Jae-Joon Lee <lee...@gm...> wrote: > If you want aspect="auto", this must also be set when you create ImageGrid. > A simple example is attached. > If you want a fixed aspect other than 1, it is doable but gets a bit > tricky. Let me know if this is what you want. > > Regards, > > -JJ > > > > from mpl_toolkits.axes_grid1 import ImageGrid > > fig = plt.figure(1) > > grid = ImageGrid(fig, 111, (2, 1), > aspect=False, > label_mode='L', cbar_mode="single", > ) > > arr = np.arange(100).reshape((10, 10)) > im1 = grid[0].imshow(arr, aspect="auto") > im2 = grid[1].imshow(arr, aspect="auto") > > grid[0].cax.colorbar(im1) > > > > > On Sat, Aug 20, 2011 at 2:43 PM, gr...@bi... > <gr...@bi...> wrote: >> Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will >> display the image with pixels having some aspect ratio other than 1:1 >> However, I cannot get this to work when using imshow within an AxesGrid axis. >> Is there a way to get an array shown with imshow() within an AxesGrid >> axis to have a pixel aspect other than 1:1 ? >> If not, is there a simple way to add a shared colorbar when using subplots() ? >> >> Gary >> >> ------------------------------------------------------------------------------ >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> user administration capabilities and model configuration. Take >> the hassle out of deploying and managing Subversion and the >> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
From: Jae-Joon L. <lee...@gm...> - 2011-08-20 08:49:38
|
If you want aspect="auto", this must also be set when you create ImageGrid. A simple example is attached. If you want a fixed aspect other than 1, it is doable but gets a bit tricky. Let me know if this is what you want. Regards, -JJ from mpl_toolkits.axes_grid1 import ImageGrid fig = plt.figure(1) grid = ImageGrid(fig, 111, (2, 1), aspect=False, label_mode='L', cbar_mode="single", ) arr = np.arange(100).reshape((10, 10)) im1 = grid[0].imshow(arr, aspect="auto") im2 = grid[1].imshow(arr, aspect="auto") grid[0].cax.colorbar(im1) On Sat, Aug 20, 2011 at 2:43 PM, gr...@bi... <gr...@bi...> wrote: > Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will > display the image with pixels having some aspect ratio other than 1:1 > However, I cannot get this to work when using imshow within an AxesGrid axis. > Is there a way to get an array shown with imshow() within an AxesGrid > axis to have a pixel aspect other than 1:1 ? > If not, is there a simple way to add a shared colorbar when using subplots() ? > > Gary > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Eric F. <ef...@ha...> - 2011-08-20 07:48:45
|
On 08/19/2011 07:43 PM, gr...@bi... wrote: > Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will > display the image with pixels having some aspect ratio other than 1:1 > However, I cannot get this to work when using imshow within an AxesGrid axis. > Is there a way to get an array shown with imshow() within an AxesGrid > axis to have a pixel aspect other than 1:1 ? > If not, is there a simple way to add a shared colorbar when using subplots() ? By shared colorbar, do you mean something like this? http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html It is using ordinary axes, and is a bit more complex than needed for many purposes. Eric > > Gary > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: <gr...@bi...> - 2011-08-20 05:43:34
|
Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will display the image with pixels having some aspect ratio other than 1:1 However, I cannot get this to work when using imshow within an AxesGrid axis. Is there a way to get an array shown with imshow() within an AxesGrid axis to have a pixel aspect other than 1:1 ? If not, is there a simple way to add a shared colorbar when using subplots() ? Gary |
From: Eric F. <ef...@ha...> - 2011-08-20 01:48:34
|
On 08/15/2011 11:10 PM, Till Stensitzki wrote: > Hello, > for a interactive gui program i want to change the shown data without changing > the rest of the figure. For normal plots, there is a set_xdata/set_ydata > methods. For QuadMesh, there is a set_array method, which i don't get to work. You have to use ravel(). Illustrated with ipython -pylab: xx = pcolormesh(rand(3,3)) xx.set_array(rand(3,3).ravel()) draw() xx.set_array(rand(3,3).ravel()) draw() Eric > > Thanks, > Till |
From: Eric F. <ef...@ha...> - 2011-08-19 20:30:56
|
On 08/19/2011 09:19 AM, Andre' Walker-Loud wrote: >> >> I agree that this is a bug. (I suspect it is a malign side-effect of >> some attempt to make bar plots work with a log scale, but I haven't >> tracked it down.) What is less clear is the desired behavior. Raise an >> exception? Silently delete the points that are invalid with a log scale? >> Or delete them with a warning? > > I would delete them with a warning. Those who are familiar with logs will not be surprised. Those who are not familiar will be provided an opportunity to learn something new! > I have tracked down the problem, and am testing a fix for it. The intended behavior was silent masking of non-positive values. An option for a warning could be added, but for now I will just make it work as intended, and as it does with other plot types. Eric > > Andre > > > > > >> >> Eric >> >>> >>> thanks a lot, >>> richard >>> >>> The verbose output: >>> >>> $HOME=/Users/richard >>> CONFIGDIR=/Users/richard/.matplotlib >>> matplotlib data path >>> /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data >>> loaded rc file >>> /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc >>> matplotlib version 1.0.1 >>> verbose.level helpful >>> interactive is False >>> units is False >>> platform is darwin >>> Using fontManager instance from /Users/richard/.matplotlib/fontList.cache >>> backend MacOSX version unknown >>> 1.0.1 >>> >>> The resulting figure: |
From: Andre' Walker-L. <wal...@gm...> - 2011-08-19 19:19:32
|
> > I agree that this is a bug. (I suspect it is a malign side-effect of > some attempt to make bar plots work with a log scale, but I haven't > tracked it down.) What is less clear is the desired behavior. Raise an > exception? Silently delete the points that are invalid with a log scale? > Or delete them with a warning? I would delete them with a warning. Those who are familiar with logs will not be surprised. Those who are not familiar will be provided an opportunity to learn something new! Andre > > Eric > >> >> thanks a lot, >> richard >> >> The verbose output: >> >> $HOME=/Users/richard >> CONFIGDIR=/Users/richard/.matplotlib >> matplotlib data path >> /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data >> loaded rc file >> /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc >> matplotlib version 1.0.1 >> verbose.level helpful >> interactive is False >> units is False >> platform is darwin >> Using fontManager instance from /Users/richard/.matplotlib/fontList.cache >> backend MacOSX version unknown >> 1.0.1 >> >> The resulting figure: >> >> >> >> >> ------------------------------------------------------------------------------ >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> user administration capabilities and model configuration. Take >> the hassle out of deploying and managing Subversion and the >> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> >> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Eric F. <ef...@ha...> - 2011-08-19 19:13:07
|
On 08/18/2011 10:03 PM, Richard Neher wrote: > Hi folks, > > it seems to me that there is a bug in scatter when using log scale. Have > a look at the output of the following script: > > frompylab import* > > print matplotlib.__version__ > x=arange(10) > plot(x, exp(-x)) > ax=gca() > ax.set_yscale('log') > > scatter(x, exp(-x), label= 'works fine') > scatter(x, zeros(10), marker='x', label='shows up at 0.1, rather than 0') > legend() > savefig('scatter_bug.png') > > > On my machine, scatter puts zeros on the logscale somewhere at 0.1, > where they aren't supposed to be. I agree that this is a bug. (I suspect it is a malign side-effect of some attempt to make bar plots work with a log scale, but I haven't tracked it down.) What is less clear is the desired behavior. Raise an exception? Silently delete the points that are invalid with a log scale? Or delete them with a warning? Eric > > thanks a lot, > richard > > The verbose output: > > $HOME=/Users/richard > CONFIGDIR=/Users/richard/.matplotlib > matplotlib data path > /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data > loaded rc file > /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc > matplotlib version 1.0.1 > verbose.level helpful > interactive is False > units is False > platform is darwin > Using fontManager instance from /Users/richard/.matplotlib/fontList.cache > backend MacOSX version unknown > 1.0.1 > > The resulting figure: > > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Eric F. <ef...@ha...> - 2011-08-19 19:04:30
|
On 08/18/2011 10:57 PM, James McMurray wrote: > I made this standalone script here: http://pastebin.com/AnKeCwiU and > this does not suffer from the issue. For comparison here is the plotting > function in my program: http://pastebin.com/7xxtPQYb The problem is that the Gtk backend does not support text rotation. If you use FigureCanvasGTKAgg instead of FigureCanvasGTK, I think the behavior will be back to normal. The Gtk backend is not fully functional or supported. Eric > > The only major difference is the use of the interactive display in the > script, against the use of Figure and the GTK canvas in my application. > > I am using matplotlib 1.0.1 > > On 19 August 2011 10:28, Eric Firing <ef...@ha... > <mailto:ef...@ha...>> wrote: > > On 08/18/2011 09:53 PM, James McMurray wrote: > > Hi, > > > > I am having a problem where the colorbar labels will never appear > > vertically, even when their rotation is specified as "vertical". > As you > > can see in the screenshot here: http://minus.com/lbOJyOljH this > creates > > problems when the labels are cut off and generally looks > unprofessional. > > > > I am creating the colorbars with code like: > > cbar1.set_label("Lifetime [$\mu$s]", rotation='vertical') > > I don't understand; even with no kwarg, the label on a vertical colorbar > will be vertical. It has been that way for as long as I can remember. > > What mpl version are you using? > Please provide a minimal standalone script showing the problem. > > Eric > > > > > > > And yet the specified rotation has no effect. > > > > Any help would be much appreciated, > > James > > > > > > > > > ------------------------------------------------------------------------------ > > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > > user administration capabilities and model configuration. Take > > the hassle out of deploying and managing Subversion and the > > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > <mailto:Mat...@li...> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Benjamin R. <ben...@ou...> - 2011-08-19 17:43:46
|
I have an arbitrary list of coordinates that I know represent the boundary of a polygon. Is there some sort of function from the contouring or path codes that would allow me to pass in that list and get back the resorted list with the path codes with it? Thanks, Ben Root |
From: Benjamin R. <ben...@ou...> - 2011-08-19 17:29:37
|
On Mon, Aug 15, 2011 at 4:56 PM, Mathew Yeates <mat...@gm...> wrote: > Hi > Is there a simple way to do the following > > l1=Line2D(xdata=[1,2,3],ydata=[4,5,6]) > > l2=Line2D(xdata = [1].ydata=[3]) > > if l2 in l1 #error, Line2D not iterable > > > -Mathew > > Haven't tried it, but you might want to look at matplotlib.path.contains_path() or matplotlib.path.path_in_path()? Ben Root |
From: Jonny M. <thi...@gm...> - 2011-08-19 17:07:42
|
Hi, I am having some trouble establishing how to use matplotlib.scale.SymmetricalLogScale() to draw a log scale on the positive and negative axis of a plot. Assuming of course that is the correct way to go about it The code at the moment I am looking at goes something like this, with arbitrary data generated. I need SubplotHost for parasite axis later on. <><><> import matplotlib import pylab import numpy from mpl_toolkits.axes_grid.parasite_axes import SubplotHost fig = pylab.figure(1) main = SubplotHost(fig,111) fig.add_subplot(main) x,y = [] for i in range(100): y.append(numpy.random.rand()) y.append(-numpy.random.rand()) y.append(numpy.random.rand() * 100) y.append(-numpy.random.rand() * 100) x = range(len(y)) main.plot(x,y) <><><> At this point I was expecting to be able to run with SymmetricalLogScale in the same way main.set_yscale('log') transforms after the plot but could not work out how to transform it other than: <><><> main.yaxis = matplotlib.scale.SymmetricalLogScale(main.yaxis) <><><> But that obviously didnt work, since SymmetricalLogScale doesnt have get_scale If anyone could shed some light on the way to invoke this I'd be much obliged!? I havent been able to find an example of it's usage anywhere Cheers Jonny |
From: Warren W. <war...@en...> - 2011-08-19 15:52:39
|
On Fri, Aug 19, 2011 at 3:12 AM, André Dankert <and...@go... > wrote: > Hi, > > I have a minor style problem, but, nevertheless, I can't solve it with > googles help. I want to have a minimum precision displayed on my ticks, i.e. > if the ticks are -1,-0.5,0,0.5,1 it should be displayed this way instead of > -1.0,-0.5,0.0,0.5,1.0. With the tick formatter I can set the tick > precission, but only for the whole axis (if I set %d for the example, it > will be -1,0,0,0,1). Also I use MaxNLocator, so I don't predefine the ticks > (I thought it's more convinient to use this already done procedure instead > of writing my own), so I'm more flexible, for example when I zoom in, but > therefore I don't even know, which the maximum precision is. > > Possible solutions would be: > 1. There is a number precision definition (something like %x.xf) which > produces numbers with minimum precision (again -1.0000 becomes -1 and > 2.47300 becomes 2.473) > Depending on the range of your values, "%g" might do want you want. E.g.: ----- from numpy import linspace, sin, pi from matplotlib.pyplot import plot, show, gca from matplotlib.ticker import FormatStrFormatter majorFormatter = FormatStrFormatter('%g') t = linspace(-1.0, 1.0, 41) s = sin(2*pi*t) plot(t,s) ax = gca() ax.xaxis.set_major_formatter(majorFormatter) show() ----- Warren > 2. Extract by MaxNLocator defined ticks, edit them accordingly and reassign > them (which would be still a lot of work) > > I even checked for solutions in Latex (because I use Latex string coding), > but this is even more inflexible, when it comes to numbers. But maybe > someone knows anything. > > Thanks! > > Best regards, > André > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Jonathan S. <js...@cf...> - 2011-08-19 13:03:51
|
I did have success converting my ps file to pdf with an online converter at http://www.ps2pdf.com/ -- so it seems it's ghostscript 8.70 bug (though one that I've only seen with eps files created by matplotlib). Jon On Fri, 2011-08-19 at 11:48 +0900, Jae-Joon Lee wrote: > When I converted the ps file to pdf, the result is okay. > > I tried > > * ps2pdf (from ghostscript version 8.61) > * ps2pdf (from ghostscript version 9.02) > * preview in mac os X > > and they all worked fine. > I wonder if this could be a bug in the pspdf (ghostscript 8.70 I believe). > Can you try other version of ps2pdf? > > Regards, > > -JJ > > > > On Wed, Aug 17, 2011 at 9:53 PM, Jonathan Slavin > <js...@cf...> wrote: > > Attached are examples of the problem -- a PostScript file and the pdf > > that is created using ps2pdf. The y-axis is properly labeled in the ps > > file, but the part of the label using mathtext becomes invisible in the > > pdf. > > > > Jon > > > > On Wed, 2011-08-17 at 14:09 +0900, Jae-Joon Lee wrote: > >> Can you post an output eps file so that we can take a look? > >> Regards, > >> > >> -JJ > >> > >> > >> > >> On Wed, Aug 17, 2011 at 5:52 AM, Jonathan Slavin > >> <js...@cf...> wrote: > >> > Hi all, > >> > > >> > I've been making figures for a paper I'm writing (to be submitted to the > >> > ApJ). I'm using LaTeX and so need to use encapsulated PostScript for > >> > the figures. The problem is that when the paper is translated to pdf > >> > from PostScript, the mathtext in the figures disappears. The reason > >> > that I think this is a matplotlib issue is that it's never happened to > >> > me with eps figures created in different ways. It's clear that this > >> > must be related to fonts, but I'm not sure how to get around it. Should > >> > I set text.usetex to True? I have a feeling this issue must have come > >> > up before, but I haven't found anything obviously pertinent in the > >> > mailing list archives. > >> > > >> > Jon > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > >> > user administration capabilities and model configuration. Take > >> > the hassle out of deploying and managing Subversion and the > >> > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > >> > _______________________________________________ > >> > Matplotlib-users mailing list > >> > Mat...@li... > >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > -- > > ______________________________________________________________ > > Jonathan D. Slavin Harvard-Smithsonian CfA > > js...@cf... 60 Garden Street, MS 83 > > phone: (617) 496-7981 Cambridge, MA 02138-1516 > > cell: (781) 363-0035 USA > > ______________________________________________________________ > > -- ______________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA js...@cf... 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ______________________________________________________________ |
From: James M. <jam...@gm...> - 2011-08-19 11:35:03
|
After some testing, it appears to be caused by the use of LaTeX in the labels which then prevents it from being rotated (but only inside the GTK application). I have no idea why this is only occurring when it is not in interactive mode, but I guess for the time being I can just try not to use LaTeX. On 19 August 2011 10:57, James McMurray <jam...@gm...> wrote: > I made this standalone script here: http://pastebin.com/AnKeCwiU and this > does not suffer from the issue. For comparison here is the plotting function > in my program: http://pastebin.com/7xxtPQYb > > The only major difference is the use of the interactive display in the > script, against the use of Figure and the GTK canvas in my application. > > I am using matplotlib 1.0.1 > > > On 19 August 2011 10:28, Eric Firing <ef...@ha...> wrote: > >> On 08/18/2011 09:53 PM, James McMurray wrote: >> > Hi, >> > >> > I am having a problem where the colorbar labels will never appear >> > vertically, even when their rotation is specified as "vertical". As you >> > can see in the screenshot here: http://minus.com/lbOJyOljH this >> creates >> > problems when the labels are cut off and generally looks unprofessional. >> > >> > I am creating the colorbars with code like: >> > cbar1.set_label("Lifetime [$\mu$s]", rotation='vertical') >> >> I don't understand; even with no kwarg, the label on a vertical colorbar >> will be vertical. It has been that way for as long as I can remember. >> >> What mpl version are you using? >> Please provide a minimal standalone script showing the problem. >> >> Eric >> >> >> >> > >> > And yet the specified rotation has no effect. >> > >> > Any help would be much appreciated, >> > James >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> > user administration capabilities and model configuration. Take >> > the hassle out of deploying and managing Subversion and the >> > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> > >> > >> > >> > _______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> >> ------------------------------------------------------------------------------ >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> user administration capabilities and model configuration. Take >> the hassle out of deploying and managing Subversion and the >> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > |
From: James M. <jam...@gm...> - 2011-08-19 08:57:31
|
I made this standalone script here: http://pastebin.com/AnKeCwiU and this does not suffer from the issue. For comparison here is the plotting function in my program: http://pastebin.com/7xxtPQYb The only major difference is the use of the interactive display in the script, against the use of Figure and the GTK canvas in my application. I am using matplotlib 1.0.1 On 19 August 2011 10:28, Eric Firing <ef...@ha...> wrote: > On 08/18/2011 09:53 PM, James McMurray wrote: > > Hi, > > > > I am having a problem where the colorbar labels will never appear > > vertically, even when their rotation is specified as "vertical". As you > > can see in the screenshot here: http://minus.com/lbOJyOljH this creates > > problems when the labels are cut off and generally looks unprofessional. > > > > I am creating the colorbars with code like: > > cbar1.set_label("Lifetime [$\mu$s]", rotation='vertical') > > I don't understand; even with no kwarg, the label on a vertical colorbar > will be vertical. It has been that way for as long as I can remember. > > What mpl version are you using? > Please provide a minimal standalone script showing the problem. > > Eric > > > > > > > And yet the specified rotation has no effect. > > > > Any help would be much appreciated, > > James > > > > > > > > > ------------------------------------------------------------------------------ > > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > > user administration capabilities and model configuration. Take > > the hassle out of deploying and managing Subversion and the > > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Eric F. <ef...@ha...> - 2011-08-19 08:28:52
|
On 08/18/2011 09:53 PM, James McMurray wrote: > Hi, > > I am having a problem where the colorbar labels will never appear > vertically, even when their rotation is specified as "vertical". As you > can see in the screenshot here: http://minus.com/lbOJyOljH this creates > problems when the labels are cut off and generally looks unprofessional. > > I am creating the colorbars with code like: > cbar1.set_label("Lifetime [$\mu$s]", rotation='vertical') I don't understand; even with no kwarg, the label on a vertical colorbar will be vertical. It has been that way for as long as I can remember. What mpl version are you using? Please provide a minimal standalone script showing the problem. Eric > > And yet the specified rotation has no effect. > > Any help would be much appreciated, > James > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Richard N. <ric...@tu...> - 2011-08-19 08:17:13
|
Hi folks, it seems to me that there is a bug in scatter when using log scale. Have a look at the output of the following script: from pylab import * print matplotlib.__version__ x=arange(10) plot(x, exp(-x)) ax=gca() ax.set_yscale('log') scatter(x, exp(-x), label= 'works fine') scatter(x, zeros(10), marker='x', label='shows up at 0.1, rather than 0') legend() savefig('scatter_bug.png') On my machine, scatter puts zeros on the logscale somewhere at 0.1, where they aren't supposed to be. thanks a lot, richard The verbose output: $HOME=/Users/richard CONFIGDIR=/Users/richard/.matplotlib matplotlib data path /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data loaded rc file /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc matplotlib version 1.0.1 verbose.level helpful interactive is False units is False platform is darwin Using fontManager instance from /Users/richard/.matplotlib/fontList.cache backend MacOSX version unknown 1.0.1 The resulting figure: |
From: André D. <and...@go...> - 2011-08-19 08:12:40
|
Hi, I have a minor style problem, but, nevertheless, I can't solve it with googles help. I want to have a minimum precision displayed on my ticks, i.e. if the ticks are -1,-0.5,0,0.5,1 it should be displayed this way instead of -1.0,-0.5,0.0,0.5,1.0. With the tick formatter I can set the tick precission, but only for the whole axis (if I set %d for the example, it will be -1,0,0,0,1). Also I use MaxNLocator, so I don't predefine the ticks (I thought it's more convinient to use this already done procedure instead of writing my own), so I'm more flexible, for example when I zoom in, but therefore I don't even know, which the maximum precision is. Possible solutions would be: 1. There is a number precision definition (something like %x.xf) which produces numbers with minimum precision (again -1.0000 becomes -1 and 2.47300 becomes 2.473) 2. Extract by MaxNLocator defined ticks, edit them accordingly and reassign them (which would be still a lot of work) I even checked for solutions in Latex (because I use Latex string coding), but this is even more inflexible, when it comes to numbers. But maybe someone knows anything. Thanks! Best regards, André |
From: James M. <jam...@gm...> - 2011-08-19 07:54:03
|
Hi, I am having a problem where the colorbar labels will never appear vertically, even when their rotation is specified as "vertical". As you can see in the screenshot here: http://minus.com/lbOJyOljH this creates problems when the labels are cut off and generally looks unprofessional. I am creating the colorbars with code like: cbar1.set_label("Lifetime [$\mu$s]", rotation='vertical') And yet the specified rotation has no effect. Any help would be much appreciated, James |
From: Jae-Joon L. <lee...@gm...> - 2011-08-19 03:09:59
|
On Fri, Aug 19, 2011 at 1:29 AM, mogliii <mo...@gm...> wrote: > Looking back I must say that > http://matplotlib.sourceforge.net/api/gridspec_api.html#matplotlib.gridspec.GridSpecBase > is not very helpful. And it is very counter-intuitive to the Axes > dimension specification with location lower left and width/height > >>> plt.axes([0.1, 0.1, 0.8, 0.8]) Those parameters are inherited from subplot parameters http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.subplots_adjust But, I agree that the documentation of grispec needs to be improved (any contribution will be appreciated). Regards, -JJ |
From: gary r. <gr...@bi...> - 2011-08-19 02:57:59
|
Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will display the image with pixels having some aspect ratio other than 1:1 However, I cannot get this to work when using imshow within an AxesGrid axis. Is there a way to get an array shown with imshow() within an AxesGrid axis to have a pixel aspect other than 1:1 ? If not, is there a simple way to add a shared colorbar when using subplots() ? Gary |
From: Jae-Joon L. <lee...@gm...> - 2011-08-19 02:48:34
|
When I converted the ps file to pdf, the result is okay. I tried * ps2pdf (from ghostscript version 8.61) * ps2pdf (from ghostscript version 9.02) * preview in mac os X and they all worked fine. I wonder if this could be a bug in the pspdf (ghostscript 8.70 I believe). Can you try other version of ps2pdf? Regards, -JJ On Wed, Aug 17, 2011 at 9:53 PM, Jonathan Slavin <js...@cf...> wrote: > Attached are examples of the problem -- a PostScript file and the pdf > that is created using ps2pdf. The y-axis is properly labeled in the ps > file, but the part of the label using mathtext becomes invisible in the > pdf. > > Jon > > On Wed, 2011-08-17 at 14:09 +0900, Jae-Joon Lee wrote: >> Can you post an output eps file so that we can take a look? >> Regards, >> >> -JJ >> >> >> >> On Wed, Aug 17, 2011 at 5:52 AM, Jonathan Slavin >> <js...@cf...> wrote: >> > Hi all, >> > >> > I've been making figures for a paper I'm writing (to be submitted to the >> > ApJ). I'm using LaTeX and so need to use encapsulated PostScript for >> > the figures. The problem is that when the paper is translated to pdf >> > from PostScript, the mathtext in the figures disappears. The reason >> > that I think this is a matplotlib issue is that it's never happened to >> > me with eps figures created in different ways. It's clear that this >> > must be related to fonts, but I'm not sure how to get around it. Should >> > I set text.usetex to True? I have a feeling this issue must have come >> > up before, but I haven't found anything obviously pertinent in the >> > mailing list archives. >> > >> > Jon >> > >> > >> > ------------------------------------------------------------------------------ >> > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> > user administration capabilities and model configuration. Take >> > the hassle out of deploying and managing Subversion and the >> > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> > _______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > -- > ______________________________________________________________ > Jonathan D. Slavin Harvard-Smithsonian CfA > js...@cf... 60 Garden Street, MS 83 > phone: (617) 496-7981 Cambridge, MA 02138-1516 > cell: (781) 363-0035 USA > ______________________________________________________________ > |