Re: [Matplotlib-users] Is there an easy way to plot a log-frequency spectrogram?

2010-04-19 Thread Eric Firing
Friedrich Romstedt wrote: > 2010/4/19 Eric Firing : >> David Ho wrote: >>> Just as an illustration, I'm looking for a nice way to plot something >>> like this: >>> http://labrosa.ee.columbia.edu/matlab/sgram/ >>> >>> I don't necessa

Re: [Matplotlib-users] Incomplete rendering of line plot

2010-04-23 Thread Eric Firing
Tom Aldcroft wrote: > I've run into a case where the rendering in a line plot is incomplete > and some lines are not drawn at all. Basically I have a dataset (see > below) where I know two points go to a value of zero. When I plot > the points and do interactive pan/zoom sometimes the line going

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-26 Thread Eric Firing
Jae-Joon Lee wrote: > Looking at the code, the "transparent" option set alphas of paches to > 0, which I think is simply ignored in ps backend (which does not > support alpha). I think it is better if the visibility of patches is > set to False when the "transparent" option is set. The ps backend

Re: [Matplotlib-users] bug in ContourSet and additional kwargs

2010-04-27 Thread Eric Firing
Matthias Michler wrote: > Hello list, Hi Eric, > > I stumbled upon the old thread "ploting matrix data" and the changes in my > mpl-svn working copy allowing to provide under_color and over_color as a > keyword argument of contourf. > > On Tuesday 14 April

Re: [Matplotlib-users] bug in ContourSet and additional kwargs

2010-04-28 Thread Eric Firing
Matthias Michler wrote: [...] First of all I think my previously described error in the over-color is due to a bug in the set up of the colors.ListedColormap during the initialisation of ContourSet if 'self.colors' is not None. For the number of entries in the map 'N' the number of layers is pa

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-28 Thread Eric Firing
T J wrote: > On Mon, Apr 26, 2010 at 12:28 PM, T J wrote: >> On Mon, Apr 26, 2010 at 12:01 PM, Jae-Joon Lee wrote: >>> Looking at the code, the "transparent" option set alphas of paches to >>> 0, which I think is simply ignored in ps backend (which does not >>> support alpha). I think it is bette

Re: [Matplotlib-users] How to set constant y-axis scale value

2010-04-29 Thread Eric Firing
melloncx wrote: > Hello, > > I am quite new in matplotlib, I am now facing a quite simple problem but > have no idea to solve. I just want set the y axis scale to value 100, which > means in the image, the y axis is always of scale 100, because the points in > my image indicates the percentage val

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-30 Thread Eric Firing
T J wrote: On Wed, Apr 28, 2010 at 12:22 PM, Eric Firing wrote: It's a bug, made more confusing by the trickery that is done when printing a figure. DPI, facecolor, and edgecolor that are set for a figure object are used only for screen display, and are overridden when the figure is

Re: [Matplotlib-users] question about axis scale multiplier

2010-04-30 Thread Eric Firing
Margherita Vittone wiersma wrote: > HI, > i am making a scatter plot and i simply use defaults for tick formatting etc; > when i plot the data the plot show on the x axis a multiplier scaling with > scintific notation; > i would like to get rid of it , the data looks like this: > > values5 = > [

Re: [Matplotlib-users] Bar graph performance

2010-05-02 Thread Eric Firing
On 05/02/2010 05:48 PM, Kun Hong wrote: > Hi, > > I am new to matplotlib. So if I ask sth stupid, please bear with me. > > I am using matplotlib to present large data set in different graph > types, > bar, dot, line, etc. I find that the bar graph has very bad performance. > Say, I draw data point

Re: [Matplotlib-users] Bar graph performance

2010-05-02 Thread Eric Firing
On 05/02/2010 05:48 PM, Kun Hong wrote: > Hi, > > I am new to matplotlib. So if I ask sth stupid, please bear with me. > > I am using matplotlib to present large data set in different graph > types, > bar, dot, line, etc. I find that the bar graph has very bad performance. > Say, I draw data point

Re: [Matplotlib-users] Bar graph performance

2010-05-04 Thread Eric Firing
On 05/03/2010 11:45 PM, Kun Hong wrote: > Eric, > > Thanks a lot for the pointers. Sorry for the double posting. > > I tried fill_between, which works better than bar graph. > But I need to change the data set to be able to get the filling > into a nicely-formed rectangle, and the performance is st

Re: [Matplotlib-users] get_*gridlines alwys returns the same things?

2010-05-05 Thread Eric Firing
On 05/05/2010 08:46 AM, Chloe Lewis wrote: > I got curious and looked for the grid command in matplotlib/axes.py. > Looks like an inherited-from-Matlab thing. In the cla (clear axis) > function of the Axes class: > > self._gridOn = rcParams['axes.grid'] > #... > self.g

Re: [Matplotlib-users] sketch bar?

2010-05-07 Thread Eric Firing
On 05/06/2010 08:02 PM, oyster wrote: > I know matplotlib mimics matlab, which offers scientific look. > but can we use matplotlib to get a skecth(in other words, > hand-drawing) style for bar/pie/etc in none formalist paper? for > example, http://teethgrinder.co.uk/open-flash-chart/gallery-bar-7.

Re: [Matplotlib-users] plot() resets limits?

2010-05-16 Thread Eric Firing
On 05/16/2010 10:19 AM, Philipp K. Janert wrote: > > Let's say I am running an interactive session > (ipython -pylab), and now issue the following > commands: > > x = linspace(0, 10, 100 ) > plot( x, sin(x) ) > ylim( -2, 2 ) > plot( x, cos(x) ) > > Then the second plo

Re: [Matplotlib-users] pcolor shading=interp change interpolation method?

2010-05-17 Thread Eric Firing
On 05/17/2010 06:32 AM, Reckoner wrote: > Hi, > > Using the following > > >>> pcolor(x,y,z,shading='interp') > > is it possible to change the interpolation method used? I noticed that > there are set_interpolation methods for images created using > > In [83]: h = imshow( z) > > In [84]: h.set_inte

Re: [Matplotlib-users] linearized log axis

2010-05-19 Thread Eric Firing
On 05/19/2010 10:28 AM, Benjamin Root wrote: > Maybe I am misunderstanding your problem, but you can select 'semilog' > for the x/yscale parameter. You mean "symlog". See http://matplotlib.sourceforge.net/examples/pylab_examples/symlog_demo.html Although the example doesn't show it, the axis li

Re: [Matplotlib-users] linearized log axis

2010-05-20 Thread Eric Firing
that means somewhere a log(0) is attempted. This kind of > defeats the purpose... Yes, it looks like a bug that can be fixed fairly easily. In the meantime, a workaround is to add the kwarg "scaley=False" to your call to "plot"; or more generally, do something like ax = s

Re: [Matplotlib-users] eps/pdf/svg contourf contours don't overlap properly with high resolution data

2010-05-24 Thread Eric Firing
On 05/24/2010 04:55 AM, Benjamin Root wrote: > > On Thu, May 20, 2010 at 1:06 AM, ayuffa > wrote: > > > Does anyone have another fix for this problem that DOES NOT produce HUGE > PDF/EPS files? > > I believe that the latest SVN revision should allow you to set > ra

Re: [Matplotlib-users] setting zorder for basemap.imshow(); overlay on continents

2010-05-24 Thread Eric Firing
On 05/24/2010 07:43 AM, Jeff Whitaker wrote: > On 5/24/10 10:09 AM, P. R.M. wrote: >> Hi, >> Im trying to create a precipitation contour plot using imshow() and >> basemap. >> Id like to draw the imshow() plot so that it overlays the filled >> continents, yet NOT the continental outlines. >> unfort

Re: [Matplotlib-users] plot_date bug.

2010-05-24 Thread Eric Firing
On 05/24/2010 07:08 AM, Dharhas Pothina wrote: > Hi, > > I'm trying to use plot_date to plot some USGS daily flow data. I seem to have > hit a bug in the plotting where large spikes in data are not being plotted at > all scales. > It's the known path simplification bug, which has been fixed in s

Re: [Matplotlib-users] is this a bug?

2010-05-24 Thread Eric Firing
On 04/09/2010 06:44 AM, Mathew Yeates wrote: > Can anyone verify this? If so, I'll submit it to the tracker. > > The following works without the --pylab switch but not with it. The error I > get is some how related to a call to get the active figure which returns > None. > > C:\Python26\lib\site-p

Re: [Matplotlib-users] Type 1 font in figures needed

2010-05-25 Thread Eric Firing
On 05/25/2010 10:21 AM, Michael Droettboom wrote: > There isn't a way to embed Type 1 fonts, but you can force matplotlib to > use the core 14 Postscript fonts only by setting the rcParam "ps.useafm" > to True. Or for the pdf backend, rcParams['pdf.use14corefonts'] = True and refrain from using

Re: [Matplotlib-users] precision of drange

2008-06-02 Thread Eric Firing
Brian McLaughlin wrote: > If I do: > t1=datetime.datetime(2008,06,02,01,0,0) > t1=datetime.datetime(2008,06,02,02,0,0) > tVec1=drange(t1,t2,datetime.timedelta(seconds=1)) > tVec2=drange(t1,t2,datetime.timedelta(seconds=5)) > tVec3=nan*ones(tVec1.shape) > > I cannot do something like: > for i in tV

Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-04 Thread Eric Firing
Bryan Fodness wrote: > I just upgraded to 0.98.0 and recreated a few graphs. I am missing > parts of the edges of a fill and polygon. Any suggestions? > Please post an illustrative script, as simple as possible. Eric - C

Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-05 Thread Eric Firing
#x27;edge_test') > > > On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Bryan Fodness wrote: > > I just upgraded to 0.98.0 and recreated a few graphs. I am > missing parts of th

Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-09 Thread Eric Firing
Bryan Fodness wrote: > I have copied the new patches.py and axes.py. It fixed the fill, but I > still have an axes instance that is not closed. I don't understand what you mean by this--what is the problem? > > x1, x2, y1, y2 = -4, 4, -4, 4 > ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95') >

Re: [Matplotlib-users] Align x axises with data vectors of different size

2008-06-10 Thread Eric Firing
John Hunter wrote: > We should consider fix the autoscaling so that tthe default view lim > are always open intervals that contain the data. This has been on my mental list for a long time. I will look into it. Eric - Chec

Re: [Matplotlib-users] Quiver not respecting hold state

2008-06-11 Thread Eric Firing
Marshall, You are right--there is a line of boilerplate that I left out of quiver, contour, and contourf. At the very top of each of these methods in axes.py there should be the line if not self._hold: self.cla() You can either add the line to your axes.py, or just do the manual pylab cla(

Re: [Matplotlib-users] Version 0.98 behavior change - scatter

2008-06-16 Thread Eric Firing
Michael Droettboom wrote: > As a quick-fix workaround, you can do: > > from matplotlib.pyplot import * > p = scatter([0,1,2,3], [4,5,6,7], c ='k', alpha=0, edgecolor = 'k') > p._alpha = 1.0 > p.set_edgecolor('k') > show() > > But the deeper question is for the rest of the list is... what's the >

Re: [Matplotlib-users] Drawing filled circles (discs)

2008-06-16 Thread Eric Firing
John Hunter wrote: > On Sun, Jun 15, 2008 at 7:48 AM, sidimok <[EMAIL PROTECTED]> wrote: > >> The code above was working for me as a charm, but since the new matlplotlib >> flavor 0.98, I'm getting this error message: >> AttributeError: 'CirclePolygon' object has no attribute 'get_verts' << >

Re: [Matplotlib-users] Global font size

2008-06-19 Thread Eric Firing
Bill Baxter wrote: > Thanks for the reply. > > On Fri, Jun 20, 2008 at 10:32 AM, Darren Dale <[EMAIL PROTECTED]> wrote: >> On Thursday 19 June 2008 9:13:15 pm Bill Baxter wrote: >>> On Fri, Jun 20, 2008 at 10:01 AM, Darren Dale <[EMAIL PROTECTED]> wrote: Hi Bill, On Thursday 19 June

Re: [Matplotlib-users] Global font size

2008-06-20 Thread Eric Firing
Eric Firing wrote: > Bill Baxter wrote: >> >> I tried putting this in my matplotlibrc but it seems to have no effect: >> >> font.size : 30.0 >> >> Just to make sure things were actually working I also tried this: >> >>font.weight : bold

Re: [Matplotlib-users] colorbar()

2008-06-21 Thread Eric Firing
Bryan Fodness wrote: > Is there a way to get the colorbar to work with an axes instance. > > ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w') > ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') > ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r) > ax2.axvline(x=0, color='gra

Re: [Matplotlib-users] threading problems

2008-06-21 Thread Eric Firing
Scott, I think that for interactive work such as you describe, ipython -pylab pretty well solves the problem, and provides window behavior like matlab's. Ipython is a big help when working with python even when you are not plotting. It is easy to install, and you don't have to learn much to st

Re: [Matplotlib-users] rationale for contour() argument dimensions?

2008-06-21 Thread Eric Firing
Chris, The point is that contouring and gridding are two entirely separate operations--and this is true in general, not just for matplotlib. Contouring algorithms--at least all the ones I have looked at--work with data on a regular grid. There are many ways to map scattered data to a regular

Re: [Matplotlib-users] More Matlab-like way to manipulate colormaps?

2008-06-22 Thread Eric Firing
David, There is no such API--maybe we should add some methods to the base Colormap so there would be--but you can do it yourself in either of two ways. First, you can generate a colormap from a list of colors, and the colors can be rgb triplets, so you could make your Nx3 array, do whatever yo

Re: [Matplotlib-users] Axes3d

2008-06-22 Thread Eric Firing
Michael Droettboom wrote: > I'm not very familiar with how axes3d works, but just by looking at the > number of transform calls and objects, it appears that it will take > significant effort to update it. It was never one of the goals of the > transformation refactoring to have that working. P

Re: [Matplotlib-users] Using indexed color maps for images-not getting correct colors

2008-06-23 Thread Eric Firing
Delbert Franz wrote: > I have been working to display an image of a USGS 7.5 minute quad sheet. > These are provided at various locations about the Web. Since the > range of colors on these maps is limited, the *.tif files appear to > use an indexed color map wherein each pixel has a value 0 to

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Eric Firing
Andrew, The traceback shows that you are tripping over something that has been changed since the version you are using, so it might work if you update your mpl, preferably from svn. I think the relevant change was made by John quite recently, but I haven't looked it up. Eric Andrew Jaffe wro

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Eric Firing
Ryan, Quiver is not quite the right starting point, although parts of it might work--and actually it could be bent into shape. The problem with attempting a direct transformation of arrows into wind barbs is that the arrows are formed with a fixed number of vertices, so everything is done wit

Re: [Matplotlib-users] movies

2008-07-01 Thread Eric Firing
Alan G Isaac wrote: > Someone said: >> http://matplotlib.sourceforge.net/faq.html#MOVIE > > OK, this works. > But might it be a possible goal for Matplotlib to be able > to assemble these PNGs into an APNG? > http://wiki.mozilla.org/APNG_Specification> I don't think it makes sense for mpl to do t

Re: [Matplotlib-users] findobj in pylab

2008-07-04 Thread Eric Firing
Robert Cimrman wrote: [...] > > Great! I used to write many such functions for setting font sizes of all > elements in a figure. But speaking about the font sizes, one usually > wants the title to be in larger font then the axis labels etc. How could > something like this be implemented within y

Re: [Matplotlib-users] 3d + log

2008-07-08 Thread Eric Firing
Yves Revaz wrote: > Hi all, > > Is there a way to define logarithmic axes when using axes3d ? > > lines like > ax = axes3d.Axes3D(fig) > > ax.semilogx() > or > ax.set_xscale('log') > > fail ! > > Thanks, > > yves > You are on your own with axes3d. It has been unmaintained for a long time,

Re: [Matplotlib-users] creating colormaps

2008-07-09 Thread Eric Firing
Marjolaine Rouault wrote: > Hi, > > I don't understand how one creates his own colormap. i am using > matplotlib and I have checked the example in > http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps but I can't > really understand how it works. Are there any other examples out > there? I wan

Re: [Matplotlib-users] The "who" command in Ipython-PyLab

2008-07-11 Thread Eric Firing
Eli Brosh wrote: > Thanks Fernando, > I now tried %who. > The result was a huge output, apparently containing all the pylab functions. > This is exactly the thing I was trying to avoid. > I wanted to use the who command to see only the variables I defined as > part of the pylab session. > > Is th

Re: [Matplotlib-users] plotting with marker 'o' but not filled

2008-07-12 Thread Eric Firing
Tony S Yu wrote: > On Jul 12, 2008, at 1:50 PM, Alan wrote: > >> Hi List, >> >> I use Fink for Mac OSX, tiger 10.4.11. >> >> So with MPL 0.90.1, this script works fine: >> >> from matplotlib.pylab import * >> import matplotlib, numpy >> print matplotlib.__version, numpy.__version__ >> att1 = {'col

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz Nahum wrote: > Hi, > I want to draw a contour plot which uses data from files. I know how to > import the files, so it's not the main issue. > Let's say I want to do a profile which has the following data: > distance, depth and some oceanographic data like temp, oxygen and stuff > > so for

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz > > > On Wed, Jul 16, 2008 at 7:51 PM, Eric Firing <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Oz Nahum wrote: > > Hi, > I want to draw a contour plot which uses data from files. I know > how t

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz Nahum wrote: > Ok, I played with it a little bit. > > Here is what I know: > importing the data is not a big issue, I aready wrote a tutorial about > it here: > http://www.tabula0rasa.org/?p=21 > > here is a sample code I wrote. > from matplotlib import pyplot as plt > from pylab import * > t

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
y the contours seem wrong? As for plotting the "series", what do you mean? Put circles on the data points? Then include something like this, after the call to contourf: import numpy as np X, Y = np.meshgrid(x,y) plt.hold(True) # probably not necessary plt.plot(X,Y, 'o') Eric

Re: [Matplotlib-users] animated hexbin plot

2008-07-16 Thread Eric Firing
Chee Sing Lee wrote: > Hello, > > I'm pretty new to matplotlib, so please bear with me. > > I am writing an application that includes a hexagonally binned scatter > plot that updates periodically, up to a couple times a second. My > current approach is clearing axes.collections, calling hexbin()

Re: [Matplotlib-users] matplotlib colorbar

2008-07-26 Thread Eric Firing
Bharathkrishna wrote: > By default the colorbar has 0 for black and 1 for white. I was wondering > if it is possible to reverse this for it show 0 for white and move > upwords to show 1 for black. > regards, > kbk It sounds like what you are asking for is a reversed colormap, and all the stand

Re: [Matplotlib-users] upgrade problems

2008-07-28 Thread Eric Firing
Ben Axelrod wrote: > I am having problems plotting anything using version 0.98.1 on Linux > Debian 4. But 0.91.4 works fine. If you are compiling from source, the problem could be that setup.py does not clean out the destination directory. For example, if you are installing in /usr/local/lib

Re: [Matplotlib-users] Colormap cluttering?

2008-07-28 Thread Eric Firing
Laurent Dufrechou wrote: > Hello, > > > > I would like to have a cluttering functionality to colorbar. > > http://en.wikipedia.org/wiki/Clutter_(radar) > > > > Before writing it, I would like to know if there is a way to doing it > with matplotlib. > > What I mean by cluttering is: > >

Re: [Matplotlib-users] Waterfall Plot?

2008-07-29 Thread Eric Firing
Travis Ruthenburg wrote: > I'm new to matplotlib and was hoping someone could point me in the > right direction for making a waterfall plot, similar to MATLAB's > 'waterfall'. > > I'd like to plot a series of 2-D spectra staggered by time. Travis, I presume you are handling the calculation o

Re: [Matplotlib-users] ColorBar with axes

2008-07-31 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Hello, > > I would like to show a colorbar for my plot (see attachment) but I can't > figure out how it works. > In the examples on the website I only found the call to pylab.colorbar(), > which doesn't work with my subplots. My code is as follows (with the bar > graph-p

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread Eric Firing
John Hunter wrote: > On Tue, Aug 5, 2008 at 3:46 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > >> But if I replace the Inf by a nan: y[2] = np.nan, then it plots fine. >> >> I know, I know, I can do this with masked arrays, but it cannot be that hard >> to make this work correctly, and wouldn't tha

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread Eric Firing
John Hunter wrote: > On Tue, Aug 5, 2008 at 7:03 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > >> Matlab ignores it, same as with a nan. > > Although intuitively I think of inf as very different from nan, my > default is to go with matlab like behavior in the absence

Re: [Matplotlib-users] Scaling axes not data?

2008-08-10 Thread Eric Firing
Boris Barbour wrote: > Hi, > > I have lots of data acquired via analogue to digital conversion. The data is > consequently represented as integers (often 16 bit resolution). To obtain the > correct signal and plot it, these data must of course be multiplied by a > floating point scale factor. T

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread Eric Firing
Mathieu Leplatre wrote: > Is there a way to automatically guess margins according to chart content ? There is nothing like that built into mpl. It is not an easy thing to do in general--that is, for an arbitrary set of axes, labels, widgets, etc. Eric > > Like, in this small example : > > im

Re: [Matplotlib-users] Scaling axes not data?

2008-08-14 Thread Eric Firing
Boris Barbour wrote: Eric and John, Thanks for the information. You are right that this probably would have been a premature optimisation, even if it weren't rendered useless by matplotlib using doubles internally (which I hadn't realised). The thought just occurred to me as I was writing the

Re: [Matplotlib-users] saving a figure

2008-08-16 Thread Eric Firing
Elaine Angelino wrote: > hi there, > > in matlab, it is possible to save a matlab .fig file that can be opened > directly by matlab (and which you can then interact with and edit, for > example change the title, etc.). is it possible to do something > analogous in matplotlib? > > thanks very m

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Eric Firing
Jack Sankey wrote: > I'm not sure if this is a matplotlib issue or what, but all of a sudden > I was not able to do gca() or gcf() correctly. > > A simple command-line on pyshell (using wxAgg backend) went like this: I'm not familiar with pyshell, but evidently it is turning interactive mode on,

Re: [Matplotlib-users] masking values in quiver plot

2008-08-22 Thread Eric Firing
Jeff Whitaker wrote: > Michael Roettger wrote: >> Hi all, >> >> maybe I've misunderstood something concerning masking or quiver plots: >> I want to exclude some data from a quiver plot. Here's an example: >> >> 8< >> import numpy as N >> import pylab as pl >> import matplotl

Re: [Matplotlib-users] masking values in quiver plot

2008-09-04 Thread Eric Firing
Jeff Whitaker wrote: > Eric Firing wrote: >> Jeff Whitaker wrote: >>> Michael Roettger wrote: >>>> Hi all, >>>> >>>> maybe I've misunderstood something concerning masking or quiver plots: >>>> I want to exclude some data

Re: [Matplotlib-users] imshow size limitations?

2008-09-06 Thread Eric Firing
David Goldsmith wrote: > Hi! I'm trying to display a 10800 x 8100 pixel image w/ imshow using the > following code (adapted from a response to a previous post of mine): > > from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas > from matplotlib.figure import Figure > > fig

Re: [Matplotlib-users] plot star instead of pentagram

2008-09-06 Thread Eric Firing
dmitrey wrote: > hi all, > matplotlib says it's similar to MATLAB's plot tool, however, using > plot(..., 'p') plots pentagram instead of star. It makes my (Python > scikits.openopt) graphic output of numerical convergence look uglier > than MATLAB version. > > So is plotting a star intended to

Re: [Matplotlib-users] imshow size limitations?

2008-09-06 Thread Eric Firing
David Goldsmith wrote: > Thanks, Eric! > > --- On Sat, 9/6/08, Eric Firing <[EMAIL PROTECTED]> wrote: > > -- snip OP -- > >> It looks to me like you simply ran out of memory--this is >> not an imshow >> problem as such. Your array is about 1e8 el

Re: [Matplotlib-users] plot star instead of pentagram

2008-09-07 Thread Eric Firing
dmitrey wrote: > Eric Firing wrote: >> dmitrey wrote: >>> hi all, >>> matplotlib says it's similar to MATLAB's plot tool, however, using >>> plot(..., 'p') plots pentagram instead of star. It makes my (Python >>> scikits.openo

Re: [Matplotlib-users] [SciPy-user] how to plot the result of histogram2d

2008-09-08 Thread Eric Firing
Johann Cohen-Tanugi wrote: > thanks Johan, > I posted to scipy because of histogram2d being in numpy, sorry about that. > Now the stupid question, why can't imshow directly parse histogram2d, > without the transitory extent object? imshow is a general image display function; it would not make sen

Re: [Matplotlib-users] path and bbox

2008-09-08 Thread Eric Firing
Evan Mason wrote: > Hi, wonder if anyone can help me with path and bbox. I have a set of > ocean drifter tracks and I want to know if they pass through a > particular boxed area. This is straightforward to do but I wanted to > try to do it with matplotlib.transforms and matplotlib.path, which

Re: [Matplotlib-users] [SciPy-user] how to plot the result of histogram2d

2008-09-09 Thread Eric Firing
Johann Cohen-Tanugi wrote: > thanks Eric! Could you provide me with an executive summary as to > pcolorfast vs imshow? Is it essentially a matter of speed? It is more generality than speed. imshow is for genuine image data: an array of pixel values, with the assumption that the pixels are squar

Re: [Matplotlib-users] path and bbox

2008-09-10 Thread Eric Firing
Michael Droettboom wrote: I just added a test of intersects_bbox to SVN that seems to be working correctly for short paths containing masked values. It would appear that masked values *should* be dealt with correctly (that is, in exactly the same way as they are drawn) by the intersection code

Re: [Matplotlib-users] How to set the unit (scale factor, x1e5) on x axis?

2008-09-15 Thread Eric Firing
Stephen George wrote: > Hi Fernando, >> So, I want to plot a line, but controlling the labels on the tickers >> of the x axis. For instance, if I'm plotting (1000, 5), (2000, 10), >> (3000, 10), the ticks on the x axis might show 1000 2000 3000 >>or 1 2 3x1e3. I wa

Re: [Matplotlib-users] findobj problem!

2008-09-16 Thread Eric Firing
sa6113 wrote: > I want to use findobj attribute by this code, > > import matplotlib.pyplot as plt > import matplotlib.text as text > . > . > . > fig = plt.figure() > for t in fig.findobj(text.Text): > t.set_family(somefamily) > > but I get this error : > Figure instance has no attribute '

Re: [Matplotlib-users] Information request

2008-09-16 Thread Eric Firing
De Pauw Antoine wrote: > Jeff, > > In fact my satellite data is displaying clouds of various gases, and I don’t > like the fact that "empty" places are left dark blue (I use jet reversed > cmap) > > By masking data under a certain value, I isolate the clouds and then they > are in evidence > > W

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Eric Firing
John Hunter wrote: > On Tue, Sep 16, 2008 at 5:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote: >> Hi folks, >> I would like to save preliminary figures for later processing and >> refinement with matplotlib. Is there a way to save or pickle a figure >> object and later reload it. Matlab has a featu

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread Eric Firing
simple--indeed, to work on simplifying it and cleaning up the rough edges, and to work on maintaining a design that makes it easy to improve the real plotting capabilities and ease-of-use. Eric > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[E

Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Recently I noticed that the quiver plots all make the arrows as if the > plot had aspect ratio 1. See, for example, the documentation for quiver: > > In all cases the arrow aspect ratio is 1, so that if *U*==*V* the > angle of the arrow on the plot is 45 degrees C

Re: [Matplotlib-users] quiver aspect ratio

2008-09-18 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Eric Firing wrote: >> Jason, >> >>> In looking at the basemap examples (specifically quiver_demo.py), it >>> looks like you specifically rotate the vectors to match up with map >>> coordinates; is that right? Applying to the

Re: [Matplotlib-users] quiver aspect ratio

2008-09-19 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Eric Firing wrote: >>>> Well, the easiest way is to build mpl from svn; a few minutes ago I >>>> added this capability to quiver, selectable with an "angles" kwarg. > > Eric, > > I tried just copying the quiver.p

Re: [Matplotlib-users] quiver aspect ratio

2008-09-19 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Eric Firing wrote: >>>> Well, the easiest way is to build mpl from svn; a few minutes ago I >>>> added this capability to quiver, selectable with an "angles" kwarg. > > Eric, > > I tried just copying the quiver.p

Re: [Matplotlib-users] drawing objects/lines outside of plot

2008-09-20 Thread Eric Firing
charles reid wrote: > Hi there - > > I'm wondering if there is a way to do this, since I haven't found > anything online or in the mailing list archives that covers it. I'd > like to draw a line from inside the plot area to outside the plot area > (see attached image - the blue line is what I

Re: [Matplotlib-users] About plot(..., linewidth=...), granularity and alpha

2008-09-21 Thread Eric Firing
Laurent Dufrechou wrote: > Hello all, > > I’m playing with FFT currently. > > Here is the display under scilab (from wich I’m proting the code to > matplotlib) > > > > And the display under matplotlib : > > > > Display under matplotlib is done via: plot(freq, > abs(FreqI[0:len(FreqI)/2+

Re: [Matplotlib-users] Axes other than pixels with imshow

2008-09-21 Thread Eric Firing
G Jones wrote: > Hello, > Is it possible to label the axes of an imshow plot with something other > than pixel number? I want to use imshow for speed, but also would like > to be able to put arbitrary X and Y axes vectors on, as in pcolor(x,y,z) > Thanks, > Glenn Using the extent kwarg, you can

Re: [Matplotlib-users] One bug of PrintoutWx ( line 2109 in backend_wx.py )

2008-09-26 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Dear All, > > For the class "PrintoutWx" in backend_wx.py, because it doesn't update the API > change from matplotlib 0.98.3. All of "print" and "print preview" doesn't > work correctly on new version(matplotlib 0.98.3.) > > if we change the line in 2109 "self.canvas.f

Re: [Matplotlib-users] interpolation methods used by contourf

2008-09-29 Thread Eric Firing
Tim Michelsen wrote: > Hello users and developers of matplot, > I would like to ask what kind of interpoaltion method is used by > pylab.countourf()? > > I suppose that it uses linear interpolation to derive the areas between > the contour lines. > > Is that true? > > Kind regards, > Timmie Ti

Re: [Matplotlib-users] colors: rgb tuple vs. tuple of rgb values

2008-09-30 Thread Eric Firing
Thomas Guettler wrote: > Hi, > > this snippet works if there are more (or less) elements in the menMeans > tuple. If > there are three, it does not work since the bar command thinks the three > element tuple is a tuple of rgb values. But it is a (r, g, b) tuple. > > I think it is a bug. Should I

Re: [Matplotlib-users] vertical padding in legend

2008-09-30 Thread Eric Firing
Christopher Brown wrote: > Sorry, meant to send to the list... > > Hi Eric, > > EF> > the vertical padding is too large in the first > EF> > legend, and too small in the second. > EF> > EF> This looks to me like a design flaw: the pad is "fractional" > EF> (fraction of legend box size), when log

Re: [Matplotlib-users] colors: rgb tuple vs. tuple of rgb values

2008-10-01 Thread Eric Firing
Thomas Guettler wrote: > Hi, > > this snippet works if there are more (or less) elements in the menMeans > tuple. If > there are three, it does not work since the bar command thinks the three > element tuple is a tuple of rgb values. But it is a (r, g, b) tuple. > > I think it is a bug. Should I

Re: [Matplotlib-users] axes3D

2008-10-01 Thread Eric Firing
Lisa Tauxe wrote: > Are there any plans for incorporating this (what used to be mplot3d) > into the new matplotlib version? Not that I know of. It was not being maintained even before the move to 0.98.x. Eric - This SF.N

Re: [Matplotlib-users] plotting without using pylab

2008-10-02 Thread Eric Firing
Florian Koelling wrote: > Hello again! > > I think it's not a namespace problem. > I tried: > > from pylab import plot as pplot > import pylab as p > > As result I received busted SD Files. I ' ve this problem nearly for I am not familiar with pybel and I don't know what an SD file is, so I ha

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
Christopher Brown wrote: > Hi List, > > Attached is a closeup of two legends on a 2-panel figure. The first > legend has 10 plots listed, the second has 1. I have set each legend > identically: loc='upper right', pad=.3, handlelen=.1, handletextsep=.05. > But it seems that while the horizontal pad

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread Eric Firing
Darren Dale wrote: > On Friday 26 September 2008 18:49:25 Gideon Simpson wrote: >> Is there anything akin to this MATLAB script: >> >> http://www.mathworks.com/company/newsletters/digest/june00/export/ >> >> available for mpl? or some simple set of commands that will >> accomplish the same task? >

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread Eric Firing
John Hunter wrote: > On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > >> Good answer, but there may be one exception. The Matlab function >> description indicates that it can produce eps files with the cmyk color >> space, which is indeed

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
John Hunter wrote: > On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > >> The problem is already well explained by Eric. And my solution is to >> interpret the legend.pad as a fraction of the textsize (pad=0.3 seems >> to work fine in my eyes). Note that this breaks the ba

Re: [Matplotlib-users] plotting numbers on axes in scientific notation

2008-10-04 Thread Eric Firing
Fabrice Silva wrote: > Le mardi 09 septembre 2008 à 08:26 -0400, Michael Droettboom a écrit : >> You can use >> >> def ticklabel_format(self, **kwargs): > It did not figure how to use that! > I've tried in ipython : > import numpy as np > t = np.linspace(0,1,1024) > f =

Re: [Matplotlib-users] plotting numbers on axes in scientific notation

2008-10-04 Thread Eric Firing
Eric Firing wrote: > Fabrice Silva wrote: >> Le mardi 09 septembre 2008 à 08:26 -0400, Michael Droettboom a écrit : >>> You can use >>> >>> def ticklabel_format(self, **kwargs): >> It did not figure how to use that! >> I've tried in

Re: [Matplotlib-users] vertical padding in legend

2008-10-05 Thread Eric Firing
Jae-Joon Lee wrote: >> Done, except that it just raises a warning, and still works with the old >> kwarg. The new kwarg is "borderpad"; it is used if pad==0, which is the new >> rc default. I set the default borderpad=0.5. >> >> There is still too much other positioning in legend that is based on

<    1   2   3   4   5   6   7   8   9   10   >