Re: [Matplotlib-users] Good line plot color cycle for colorblind readers?

2015-05-15 Thread Eric Firing
On 2015/05/15 11:41 AM, Nathan Goldbaum wrote: > Hi all, > > This is a bit of a case of lazy mailing list, but I'm hoping there might > be some experts here who can point me in the right direction. > > Does anyone know of a good resource to pull a color cycle for line plots > that are good for colo

Re: [Matplotlib-users] [matplotlib-devel] Easy problem working with dev library

2015-05-16 Thread Eric Firing
On 2015/05/16 3:20 PM, Paul Hobson wrote: > > On Saturday, May 16, 2015 at 14:58, Neil Girdhar >, wrote: > > Thanks, and if I want to revert my system to its old matplotlib? > > ​ > ​ > ​Assuming you cloned the repo from git, just checkout any revision you want.

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-21 Thread Eric Firing
On 2015/05/21 5:50 AM, Matteo Niccoli wrote: > I posted a question on stackoverflow about creating with making my own > shading effect (I want to use horizontal gradient for the shading). > http://stackoverflow.com/questions/30310002/issue-creating-map-shading-in-matplotlib-imshow-by-setting-opacit

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-21 Thread Eric Firing
On 2015/05/21 11:28 AM, Matteo Niccoli wrote: > OK, I understand. > > > Could you suggest a way to reduce that 3D array to a 2D array and plot it > with a specific colormap, while preserving the shading? It looks like you will get what you want by following the titusjan's advice in his reply. If

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Eric Firing
On 2015/05/22 9:33 AM, Matteo Niccoli wrote: > The second method suggested by titusjan replaces value in hsv space with > intensity as suggested. Eric you will notce I did include the line > img_array = plt.get_cmap('cubehelix')(data_n) and yet the colormapping is > not working. I don't understan

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Eric Firing
anges the set of colors you end up with. Eric > > Matteo > > On Sat, May 23, 2015 2:19 pm, Eric Firing wrote: >> On 2015/05/22 9:33 AM, Matteo Niccoli wrote: >> >>> The second method suggested by titusjan replaces value in hsv space >>> with intens

Re: [Matplotlib-users] Annotate not Drawing Properly in a Gridspec - Version 1.4.3

2015-05-26 Thread Eric Firing
On 2015/05/26 9:10 AM, Benjamin Root wrote: > I think this is a feature/bug that got reverted in the master branch. > Perhaps you could try building matplotlib from source and seeing if the > problem goes away? Ben, it looks familiar, and related to a bizarre feature that I thought we had elimina

Re: [Matplotlib-users] Runtime Error on Solaris - Error Closing Dupe File Handle

2015-05-28 Thread Eric Firing
On 2015/05/28 3:13 AM, Bryan Williams wrote: > I have gcc on the box. I also installed the C compiler for Solaris (cc), > but I couldn't seem to find an option to switch it so that it uses cc > rather than gcc. Maybe you can do this with an environment variable? export CC=/usr/bin/cc It does loo

Re: [Matplotlib-users] problem: AttributeError: 'float' object has no attribute 'trace'

2015-06-03 Thread Eric Firing
On 2015/06/03 8:03 AM, Juan Wu wrote: > Hi, List experts, > > Any one can help for this error solution? I googled but did not find > this report. > > Thanks in adance... > > > Traceback (most recent call last): > >File "", line 5, in > hddm.analyze.plot_posterior_nodes([float(v_Neutral),

[Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-04 Thread Eric Firing
I am forwarding a message from Nathaniel Smith which is the start of a long thread on matplotlib-devel http://news.gmane.org/gmane.comp.python.matplotlib.devel related to changes that are in the works for matplotlib, and that are therefore of interest to matplotlib users. Specifically, we will b

Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
On 2015/06/05 6:15 AM, Joe Kington wrote: > Hopefully I will have some time today to play around with the D > option. I want to see if I can shift the curve a bit to include more > yellows and orange so that it can have a mix of cool and warm colors. > > > > I was thinking the same thin

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
On 2015/06/05 8:17 AM, Sourish Basu wrote: > Very often the "zero" of an anomaly is not at the center of the extrema, > and requires creating a custom diverging colormap anyway (see attached > example). Reminder: in matplotlib, color mapping is done with the combination of a colormap and a norm.

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
On 2015/06/05 11:13 AM, Jody Klymak wrote: > Though I was hazily aware of norms, I’d not really seen that before. > I particularly like the example > athttp://matplotlib.org/examples/pylab_examples/pcolor_log.html > > This seems useful enough that a section under “User Guide:Advanced > Guide” would

[Matplotlib-users] pyplot functions: do you rely on the "hold" kwarg?

2015-06-07 Thread Eric Firing
Matplotlib's pyplot retains quite a few vestiges from its original Matlab-workalike heritage; we would like to gradually eliminate those that no longer make sense. One such candidate is the "hold" kwarg that every pyplot function has, with a "True" default. I don't think it serves any useful

Re: [Matplotlib-users] [matplotlib-devel] pyplot functions: do you rely on the "hold" kwarg?

2015-06-07 Thread Eric Firing
On 2015/06/07 12:05 PM, Nathaniel Smith wrote: > On Sun, Jun 7, 2015 at 2:37 PM, Eric Firing wrote: >> Matplotlib's pyplot retains quite a few vestiges from its original >> Matlab-workalike heritage; we would like to gradually eliminate those >> that no longer make sen

Re: [Matplotlib-users] Problem on Basemap gshhs data and the associated is_land function

2015-06-19 Thread Eric Firing
On 2015/06/10 4:24 AM, Jiali Ma wrote: > Thanks for reading my mail. > In basemap toolkit of matplotlib, I found the Coastline data used is from > the GSHHS (http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html).But I found > it barely satisfying to use. Are you specifying a sufficiently high reso

[Matplotlib-users] backend_webagg for streaming plot updates: examples?

2015-06-23 Thread Eric Firing
I would like to be able to publish plots that are updated as data are received by the server. I don't actually want any of the toolbar interactivity--I just want the updated plot to appear in the browser automatically. I suspect this can all be done quite easily using the webagg backend, but

Re: [Matplotlib-users] backend_webagg for streaming plot updates: examples?

2015-06-24 Thread Eric Firing
On 2015/06/23 10:39 AM, Eric Firing wrote: > I would like to be able to publish plots that are updated as data are > received by the server. I don't actually want any of the toolbar > interactivity--I just want the updated plot to appear in the browser > automatically. I suspec

Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-06-30 Thread Eric Firing
On 2015/06/30 6:41 AM, Benjamin Root wrote: > It looks like your X data is one element larger than it needs to be. I > know pcolor() accepts grids that are (N+1,M+1), and I *think* pcolormesh > does the same. It will also accept grids that are (N,M) as well, but > will drop the last row and collumn

Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread Eric Firing
It is not clear to me that 4202 would fix it, and I think 4202 has a basic problem of its own. John, if you haven't already done so, please escalate this to a github issue. Eric On 2015/07/15 4:58 AM, Thomas Caswell wrote: > The PR to fix this is still open > (https://github.com/matplotlib/mat

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-30 Thread Eric Firing
Forcing the scalar to be a 1-element array would still leave the API inconsistent with what you show for Normalize. One solution is to flag a scalar at the start, and then de-reference at the end. Would you like to submit a PR to take care of this? ---

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-31 Thread Eric Firing
Thank you! We are always happy to have new contributors! -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo

Re: [Matplotlib-users] TypeError: can't multiply sequence by non-int of type 'float'

2015-09-28 Thread Eric Firing
On 2015/09/28 5:43 AM, Benjamin Root wrote: > Confirmed using a fairly recent matplotlib checkout. Could you file a > bug report? This is going to need some investigating. Line3D.set_3d_properties is not doing anything to turn zs into an ndarray; in fact, when zs is a scalar, it is turning it int

Re: [Matplotlib-users] How do I make a Mercator map larger

2016-01-05 Thread Eric Firing
On 2016/01/05 9:48 AM, Martin McGlensey wrote: > Arnaldo, > > Thanks for the response. I figured it out. Figsize although the units > are inches it does not correspond to inches on the display. I had to go > up to 23 X 12 to get a large image on the display. If I want to fill the > display what par

Re: [Matplotlib-users] Failing to install matplotlib with python 3

2016-06-16 Thread Eric Firing
Alan, This mailing list is obsolete; please use matplotlib-us...@python.org. Your traceback looks vaguely familiar as something that has come up before, but I don't have any more recollection than that. Suggestions: 1) Install your python environment the easy way via anaconda or miniconda:

Re: [Matplotlib-users] equivalent of PlotFilling->Axis

2009-06-24 Thread Eric Firing
Art wrote: > Is there a way to create a line plot similar to Mathematica's > PlotFilling->Axis option for ListPlot? > Like this? http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html Eric > It is a plot of a vector as a line plot, but for each point, there is a > ve

Re: [Matplotlib-users] Running matplotlib job with cron

2009-06-25 Thread Eric Firing
Paul Simon wrote: I've written my first python script with matplotlib, which works fine at the command line but not with cron. It's quite puzzling to me, and probably involves some path declaration that I don't know about. #plot data from automate.csv import matplotlib Right here you shoul

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread Eric Firing
John Hunter wrote: > On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi > wrote: >> Hello, how can I center axis tick labels, so that the labels ends up at >> the center between 2 ticks. >> > > There is no support for this, though you can left or right align a > label with a single tick:: > >

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > > from numpy import * > from matplotlib import * > > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**2 > > pyplot.figure(figsize=(9

Re: [Matplotlib-users] Build problems under Linux - swig_runtime.h error

2009-07-17 Thread Eric Firing
Johann Rohwer wrote: > After upgrading to the latest Mandriva Linux I can no longer compile > Matplotlib. The following error occurs: > > > In file included from src/backend_agg.cpp:37: > src/swig_runtime.h: In function 'void SWIG_Python_AddErrorMsg(const > char*)': > src/swig_r

Re: [Matplotlib-users] Color Map

2009-07-20 Thread Eric Firing
Ritayan Mitra wrote: > Hello >I am trying to use imshow as below > > im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, > extent=(-1.,1.,-1.,1.)) > > Trouble is I want to reverse the color gradient or use some colorscheme > which has lighter color at the bottom and darker h

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-21 Thread Eric Firing
davide lasagna wrote: > Hello everybody, > this is my first post in this list. > > I'm plotting a spectrogram with > > Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) > > and i want to add a colorbar with > > colorbar() > > > The problem is that the color scale seems to be wro

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread Eric Firing
wn function you can make it do exactly what you want instead of accepting the scaling choice imposed by the Axes method. Eric > > Cheers > > Davide > On Tue, 2009-07-21 at 09:12 -1000, Eric Firing wrote: >> davide lasagna wrote: >>> Hello everybody, >>> thi

Re: [Matplotlib-users] How to disable imshow blurring/interpolation

2009-07-22 Thread Eric Firing
Johan Carlin wrote: > Hi all, > > I have just migrated from Matlab to Scipy. Matplotlib has been great so > far. However, I have some trouble getting imshow to behave like Matlab's > image function. > > If you do image(eye(8)) in matlab, you get this: > > http://www.flickr.com/photos/phineasga

Re: [Matplotlib-users] problems with contourf plots

2009-07-25 Thread Eric Firing
Paul Anton Letnes wrote: > Hi, > > > I'm having strange problems with contourf plots. The plotting routine is > rather elaborate, so I don't have an easy way to reproduce the problem > (unfortunately). The problem should be evident from the attachments. As > you can see, the contourf routine d

Re: [Matplotlib-users] problems with contourf plots

2009-07-27 Thread Eric Firing
Paul Anton Letnes wrote: > Hi, > > > I'm having strange problems with contourf plots. The plotting routine is > rather elaborate, so I don't have an easy way to reproduce the problem > (unfortunately). The problem should be evident from the attachments. As > you can see, the contourf routine d

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Eric Firing
Joseph Smidt wrote: > I am making contourf plots with some transparency as I want to > eventually overlay such plots. When I plot such plots I see artifacts > or lines that shouldn't be there as seen here: > http://josephsmidt.googlepages.com/ex.png > > Is this a bug or am I plotting incorrec

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Eric Firing
Michael Droettboom wrote: > This is a long-standing known issue with the contour code. The > contouring library we are using (in cntr.c) was written for a graphics > library that did not support compound paths, so to draw a donut-shaped > objects it creates "cut paths" from the inner to outer e

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread Eric Firing
John Hunter wrote: > On Wed, Jul 29, 2009 at 6:50 PM, Art wrote: > >> My bottleneck now is actually saving the pngs for mencoder to make into an >> avi (as with the movie_demo example on your site) using savefig. Do you also >> know of an alternative way of generating an avi of the animation? My >

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Eric Firing
Jae-Joon Lee wrote: > I don't think there is any user-visible support for registering a > custom colormap. I have it almost done; I will commit it shortly. Eric > However, it seems to me that adding the colormap to > matplotlib.cm.datad distionary is enough. > Note that the value need to be a di

Re: [Matplotlib-users] setting user defined color map as default

2009-07-30 Thread Eric Firing
Jae-Joon Lee wrote: > I don't think there is any user-visible support for registering a > custom colormap. Now there is: svn r7309. Its use is illustrated via a modification of examples/pylab_examples/custom_cmap.py. With just a little more work, we could make it so that anything taking a "cma

Re: [Matplotlib-users] Change the text of yticklabels

2009-08-02 Thread Eric Firing
Jae-Joon Lee wrote: > Use pylab's yticks command. > > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.yticks > > Or Axes.set_yticklabels together with Axes.set_yticks. > > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_yticklabels > > -JJ O

Re: [Matplotlib-users] simple colorbar question

2009-08-05 Thread Eric Firing
Thomas Robitaille wrote: > Hi, > > Is there an easy way to force a colorbar to not take up space from the Axes > it is being plotted next to? In the following example, what I would like is > for the top Axes to remain the same size as the bottom one, and for the > colorbar to place itself on the r

Re: [Matplotlib-users] polar plot fills entire plot while drawing line, bug or feature?

2009-08-06 Thread Eric Firing
azerith wrote: > Hi, I'm new to matplotlib and in need to draw a single impulse on a polar > plot, but don't know how to do it, so i just draw a line using > pylab.polar([0,0],[0,100],'g-') > but when i draw shorter lines or > pylab.polar([0,0],[0,0],'g-') > i get the whole plot filled with green

Re: [Matplotlib-users] quiver() color arrays?

2009-08-07 Thread Eric Firing
Zane Selvans wrote: > Hey there, > > I'm trying to plot a bunch-o-vectors, colored red or blue, depending on > whether their magnitude is positive or negative (they represent > stresses), and I'm doing something like this: > > mag1 = evals[:,0] > ex1 = evecs[:,0,1] > ey1 = evecs[:,0,0] > C1 =

Re: [Matplotlib-users] pylab

2009-08-10 Thread Eric Firing
marc desmarais wrote: > Are there still two pylabs? Are the following two web pages referring > to the same pylab? Not exactly: > This one is a vision or proposal, open for discussion: > http://www.scipy.org/PyLab This one is real: > http://matplotlib.sourceforge.net/ > The pylab interface t

Re: [Matplotlib-users] pylab

2009-08-12 Thread Eric Firing
usual in that one must explicitly "reply-to-all"; it is not automatic that one's reply goes to the list. Eric > > --- On *Mon, 8/10/09, Eric Firing //* wrote: > > > From: Eric Firing > Subject: Re: [Matplotlib-users] pylab > To: "marc des

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-12 Thread Eric Firing
P.R. wrote: > This has probably been asked before, so I apologize... > > Is it possible to improve the smoothness/interpolation used in contourf? > I know that the interpolation can be set for imshow(pcolor?), but I couldn't > see how to set it for contourf. > > Right now, contourf is producing s

Re: [Matplotlib-users] Bug with pcolorfast

2009-08-13 Thread Eric Firing
G Jones wrote: > Hello, > Executing the following commands from ipython --pylab produces the error > below: > > ax = subplot(111) > ax.pcolorfast(randn(100,100)) > ax.set_xlim(2000,2001) > draw() > > I ran into the error in a more complicated script, but this seems to be > a simple example to r

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
P.R. wrote: > Hi, > I'd like to generate a colormap index based on an array of levels & using an > existing colormap (Spectral). > However, Id like the cmap index to start at the 0.3 value of the Spectral > scale (orange/yellow area) instead of starting at the '0' scale value (red > area), and then

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
Eric Firing wrote: It occurred to me after posting that imshow by default gives a misleading picture of the effect of the cmap and boundary norm. To get a clear picture, add the "interpolation='nearest'" kwarg to the imshow call. Eric > > import numpy as np > im

Re: [Matplotlib-users] fill step plots

2009-08-17 Thread Eric Firing
Florian Leitner wrote: > Hi; I've got a rather simple question. I want to (color) fill a step > plot below the line, but using the fill() function always creates > regular plots, not step plots, and fillstyle doesn't work as I'd expect > it to. How can I fill a step plot? Something like this: >

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Eric Firing
Werner F. Bruhin wrote: > Werner F. Bruhin wrote: > ... >> Ideally I would like to have these labels printed at an angle. > Put my glasses on and found the rotation property in the documentation, > only issue left is centering the labels below the bars. Are you using the align='center' kwarg to b

Re: [Matplotlib-users] how do colormaps work?

2009-08-23 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I've been trying to understand how colormaps work. I've been through the > Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the > section on colormaps has not yet been written. If anyone can point me to This is my fault; I need to write that.

Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Eric Firing
Reinier Heeres wrote: > Hi JJ, > > Thanks for the examples! I indeed suspected the anti-aliasing as well. > I'll include an option for linecolors = facecolors soon (probably this > weekend); it seems to be a good solution. No, not in general. There are two problems: it distorts the sizes and po

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread Eric Firing
Chris Michalski wrote: > > Offered for those who might have the same need – a Python pchip() > equivalent ==> pypchip(). Since I'm not sure how attachments work (or > if they work at all...), I copied the code I used below, followed by a > PNG showing "success": Chris, This looks interestin

Re: [Matplotlib-users] plotting lines with shaded / transparent region for standard deviation

2009-08-31 Thread Eric Firing
Teemu Ikonen wrote: > Hi, > > I also need error band plotting regularly (also the loglog and semilog > versions) and currently have some quickly written code to do this in > matplotlib. > > If I clean up my code and submit a patch to axes and pyplot classes, > would it have a chance to be accep

Re: [Matplotlib-users] plotting lines with shaded / transparent region for standard deviation

2009-08-31 Thread Eric Firing
Teemu Ikonen wrote: > > I also need error band plotting regularly (also the loglog and semilog > versions) and currently have some quickly written code to do this in > matplotlib. > > If I clean up my code and submit a patch to axes and pyplot classes, > would it have a chance to be accepted? >

Re: [Matplotlib-users] Compiling matplotlib (freetype issues)

2009-08-31 Thread Eric Firing
Pim Schellart wrote: > Hi Everyone, > > after I encountered some problems embedding matplotlib in a Tkinter > application I decided to update my matplotlib installation. > I downloaded and installed Python 2.6.2 and the latest svn checkouts > of numpy and scipy. > Then I tried to install (the late

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Eric Firing
Shixin Zeng wrote: > Hi, > > Could someone tell me what's the best format that matplotlib can > produce for insertion to MS word? I'm working on a paper using MS > word. I used matplotlib to produce the pictures in "png' format, but > my professor doesn't satisfy with the quality of the pictures,

Re: [Matplotlib-users] imshow and pcolor differences

2009-09-02 Thread Eric Firing
Richard McMahon wrote: > Hello, > > I want to display some data as an image and also as a contour. > > I have been looking at imshow and pcolor and find that contour > and imshow are behaving differently than pcolor. In the example below I > have a 5x5 image. pshow displays the pixels but imshow

Re: [Matplotlib-users] pcolormesh - question

2009-09-06 Thread Eric Firing
Christian Meesters wrote: > Hi, > > Let me reformulate my question: Is there a way to put ticklabels not > beside, but between ticks (centered between)? There is presently no clean mechanism for this. A workaround is to use minor ticks centered between the major ticks, and label only the minor

Re: [Matplotlib-users] segfault on plot

2009-09-10 Thread Eric Firing
Dave wrote: > I upgraded my numpy to 1.4.0.dev7375 and scipy to 0.8.0.dev5920. After doing > so > I get a segfault upon calling the plot command (see below) > > I guess I need to compile from source but I'm not sure exactly how to do so - > are there any good step-by-step instructions out there?

Re: [Matplotlib-users] Can matplotlib generate charts like this?

2009-09-10 Thread Eric Firing
Erik Wickstrom wrote: > Hi all, > > Can matplotlib (or any other Python charting library) generate charts > like this: (also attached if you prefer) > > http://imagebin.ca/view/iGhEQEE.html > > It's basically a moving average with the vertical lines being the > difference between the average and

Re: [Matplotlib-users] logarithmic colormaps for imshow

2009-09-10 Thread Eric Firing
John [H2O] wrote: > In mpl_toolkits.basemap there is a module cm. > > I have been using the cm.s3pcpn colormap for some plots which require > logarithmic coloring. The cm.s3pcpn_l colormap is also available (apparently > a linear version). > > I wanted to know whether there were any other logarit

Re: [Matplotlib-users] quiver with angles

2009-09-11 Thread Eric Firing
n.l.o wrote: > Im a bit confused of how I should use the "quiver" plotting function. > > My data is 2D, a 512x512 data array, where every entry is an angle > (polarimetry). > I also have an array with the degree of polarization which would be nice to > colour-code in to the arrows. > So: > How do

Re: [Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-15 Thread Eric Firing
>>> - backend_wx does a wxPython version check which does not work when the >>> application is py2exe'd - tracker item 2858638 added and the above wiki page >>> also contains a work around/correction suggestion. >>> >> OK, we will take a look at this too. >> > Maybe instead of using "impor

Re: [Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-16 Thread Eric Firing
Werner, >> Instead, it looks to me like the best solution is the one you provided >> at the very bottom of http://www.py2exe.org/index.cgi/MatPlotLib. > I am happy with what ever change is done as long as it also works for > py2exe'd application. > I have applied this fix to the branch and the

Re: [Matplotlib-users] axes3d material in matplotlib-0.99.0.win32-py2.5 missing?

2009-09-17 Thread Eric Firing
Reckoner wrote: > thanks. does this mean that > > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > is out of date? Yes. Eric > > thanks > > > > On Thu, Sep 17, 2009 at 6:22 PM, John Hunter wrote: >> On Thu, Sep 17, 2009 at 6:46 PM, Reckoner wrote: >>> unless I'm misunderstanding some

Re: [Matplotlib-users] Bug in demean

2009-09-18 Thread Eric Firing
Keith Goodman wrote: > Robert Kern recently noticed a bug in demean. The bug and the fix is here: > > http://mail.scipy.org/pipermail/numpy-discussion/2009-August/06.html > Fixed. Thank you for pointing this out. Eric > -

Re: [Matplotlib-users] range for log scale

2009-09-20 Thread Eric Firing
Janwillem van Dijk wrote: > Is it possible to have in Matplotlib.pyplot a log (base 10) scale that > does go from xmin to xmax where xmin and xmax are not powers of 10 (as > in Excel and OOCalc)?? E.g. a scale from 20 to 2500 like you can do in > SciDAVis (and Origin and Mathematica) "Scale/from

Re: [Matplotlib-users] circle collection get_facecolors in Basemap

2009-09-22 Thread Eric Firing
John [H2O] wrote: > Hello, > > I'm trying to plot text objects with the color used in m.scatter. My goal is > to individually label each scatter object. I've tried the following: > > circles=m.scatter(cx,cy,zsize,zlevel,cmap=cmap) > > and then: > CC = circles.get_facecolor() > i=0 > for x,y in m

Re: [Matplotlib-users] Rectangles with position in data coords and width in axes coords

2009-09-25 Thread Eric Firing
Uri Laserson wrote: > Hi, > > I want to draw a rectangle whose center is at given x,y coords (data > coords), but whose width is in axes coords. The goal is to rewrite > boxplot so that if the scaling changes etc, the boxes will stay the > same width but their x and y positions will adjust accord

Re: [Matplotlib-users] can't use custom color maps

2009-09-27 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I'd like to be able to create and use a custom colormap. I'm creating the > colormap via > the following statement: > > matplotlib.colors.ListedColormap([(0,0,0),(0.6,0,0),(0,0.6,0),(0.6,0.6,0)], > name='Earth') Assign it to a variable, like earth_cmap = matplo

Re: [Matplotlib-users] Path object where different vertices use different transforms?

2009-09-28 Thread Eric Firing
Uri Laserson wrote: > Is it possible to specify a path object that will use different > transforms for different vertices? > > This is again related to plotting a box whose height is specified by > data coords, but whose width is a constant in axes coords regardless > of scale (so linear and log x

Re: [Matplotlib-users] Update a contour plot

2009-09-28 Thread Eric Firing
Matthias Michler wrote: > Hi Ralph, > > I don't think there exists a function like the line-'set_data'-method for > collections, which are generated by 'contour'. This particular method of > lines only changes the data but leave anything else unchanged. > I attached an easy approach of updating

Re: [Matplotlib-users] new interface functions for LinearSegmentedColormap

2009-09-29 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > After experimenting with colormaps for a while, I was able to make both > discrete (piecewise-constant) and continuous (piecewise-linear) colormaps > work. Although colormaps can be created directly using > LinearSegmentedColormap from the matplotlib.colors package,

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Eric Firing
widget.canvas.ax.contourf(data) > self.ui.widget.canvas.fig.colorbar(plt) > self.ui.widget.canvas.PlotTitle = title_str > self.ui.widget.canvas.print_figure('plot') > > I thought the call self.ui.widget.canvas.ax.collections = [

Re: [Matplotlib-users] changing alpha in contourf according to z values

2009-09-29 Thread Eric Firing
Tsviki Hirsh wrote: > Dear list, > > Is it possible to specify to contourf an alpha value which is not a pure > number but lets say an array? > I would like to change the value of alpha according to the contourf > values and to get in this way a fading effect on the vallies. For contourf, one a

Re: [Matplotlib-users] Grouper use

2009-09-29 Thread Eric Firing
TP wrote: > Hi everybody, > > I try to play with "sharex" feature. Then, I have been guided to the > class "Grouper" of module cbook: > > http://matplotlib.sourceforge.net/api/cbook_api.html > > So I tried the following example: > > ## > from matplotlib.cbook import

Re: [Matplotlib-users] scaling arrows in quiver

2009-09-29 Thread Eric Firing
jason-s...@creativetrax.com wrote: > A couple of us are trying to figure out how to scale arrows in a quiver > plot so that we can exactly specify what the output arrows look like. > For example, we'd like to scale the vectors to half of their size, and > have it look like that on the quiver pl

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I'd like to generate a scatter plot in which symbols are colored using a > specified colormap, with a specified mapping from the range of the data to > the [0,1] colormap interval. I thought at first that one could use the norm > argument to specify a function that w

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
earest') > > The ability to pass in an ordinary function (or a pair of functions if > the inverse is really necessary) would be a great benefit. I will try to get to this ASAP. Eric > > Thanks! > > Phillip > > Eric Firing wrote: >> Dr. Phillip M. Feldman

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
> - I don't follow what the snippet of code below is doing: > >if cbook.iterable(value): >vtype = 'array' >val = ma.asarray(value).astype(np.float) >else: >vtype = 'scalar' >val = ma.array([value]).astype(np.float) > The idea is th

Re: [Matplotlib-users] scaling arrows in quiver

2009-09-30 Thread Eric Firing
jason-s...@creativetrax.com wrote: > A couple of us are trying to figure out how to scale arrows in a quiver > plot so that we can exactly specify what the output arrows look like. > For example, we'd like to scale the vectors to half of their size, and > have it look like that on the quiver pl

Re: [Matplotlib-users] scaling arrows in quiver

2009-10-01 Thread Eric Firing
Christopher Barker wrote: > Eric Firing wrote: >> I have committed a change to svn trunk, so that if you change the >> above to >> >> q = plt.quiver([0],[0], [1], [1], scale_units='xy', angles='xy', scale=1) > > Eric, > > You might r

Re: [Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > The attached script creates a colormap containing five colors. At the end of > the script, I print the value of cmap.N, and it is 256 rather than 5. > > http://www.nabble.com/file/p25740788/bugdemo.py bugdemo.py No, it is not a bug. You never told LinearSegmented

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Eric Firing
Václav Šmilauer wrote: > Hi, > > about a year ago I developed for my own purposes a routine for averaging > irregularly-sampled data using gaussian average. I would like to > contribute it to matplotlib, after a clean-up, if there is interest. This sounds like a nice thing to have, but I am wonde

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Eric Firing
Jason Sewall wrote: > While I'm at it, I might as well as about image dimensions vs. axes limits. > > If I change ax.axis('equal') manually to the correct bounding box of > the visible stuff (i.e. ax.axis([1.25, 5, 0, 6])), I then get an image > that is distorted, presumably to fit some pre-set a

Re: [Matplotlib-users] Arc reporting bogus bounding box?

2009-10-04 Thread Eric Firing
Jason Sewall wrote: > On Sun, Oct 4, 2009 at 11:45 PM, Eric Firing wrote: >> Use the Axes.set_aspect() method for full control of the aspect ratio, and >> of what gets changed to preserve that aspect ratio. > > Thanks, that works great! Any ideas about Arc's effect on t

Re: [Matplotlib-users] possible bug in LinearSegmentedColormap

2009-10-04 Thread Eric Firing
t about the ListedColormap documentation; I think it is reasonably clear, if you read the whole docstring, and especially the description of N. Eric > > Phillip > > Eric Firing wrote: >> Dr. Phillip M. Feldman wrote: >>> The attached script creates a colormap containing

Re: [Matplotlib-users] Axes.bar(orientation='horizontal') doesn't work?

2009-10-06 Thread Eric Firing
Ernest Adrogué wrote: > Hi, > > I'm trying to plot some horizontal bars using the .bar() method: > > import matplotlib.pyplot as plt > fig=plt.figure() > ax=fig.add_subplot(1,1,1) > ax.bar([1,2,3],[4,6,5],orientation='horizontal') Use ax.barh([1,2,3], [4,5,6]) Eric --

Re: [Matplotlib-users] how to decrease right margin and move colorbar?

2009-10-09 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I am creating a scatter plot using pyplot.scatter(), and adding a colorbar > via pyplot.colorbar(). The result is very nice, except that there is a > large amount of empty space between the right-hand edge of the axes and the > figure window. When I adjust the righ

Re: [Matplotlib-users] basemap, transform_scalar question

2009-10-11 Thread Eric Firing
John [H2O] wrote: > > Jeff Whitaker wrote: >> >> John: I don't have time to look at your code right now, but let me just >> make some general comments about plotting images on maps. If you want >> to use imshow, the data your are plotting must coincide exactly with >> your map plot area. So,

Re: [Matplotlib-users] plot color as a function of values?

2009-10-11 Thread Eric Firing
Xavier Gnata wrote: > Hi, > > Imagine you have something like: > > from pylab import * > t = arange(0.0, 2.0, 0.01) > s = sin(2*pi*t) > ax = subplot(111) > ax.plot(t, s) > > That's fine but now I would like to plot the negative parts of the curve > in red and the positive one in green. > Is the

Re: [Matplotlib-users] plot color as a function of values?

2009-10-12 Thread Eric Firing
Xavier Gnata wrote: > ax.plot(t[s>=0],s[s>=0],"g") > ax.plot(t[s<0],s[s<0],"r") > I don't think it does what you want, though, unless you are plotting markers, not lines. With lines, you will have line segments approximately on the x-axis across the gaps. Using masked arrays avoids that. Th

Re: [Matplotlib-users] nonlinear axes for imshow

2009-10-12 Thread Eric Firing
thkoe002 wrote: > Hello, > > I have the following problem. I want the axes (only the y-axis, to be exact) > of a imshow() graph to be nonlinear. By default, the axis goes linearily > from 0 to (number of pixels). With the [extent] keyword, I can change that > to going linearly from (arbitrary star

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Eric Firing
KURT PETERS wrote: > OK, I got by the tk part by installing tk-dev, but now get: [...] > build/temp.linux-i686-2.6/CXX/cxxextensions.o -L/usr/local/lib > -L/usr/local/lib -ltk8.5 -ltcl8.5 -lstdc++ -lm -lfreetype -lz -lstdc++ > -lm -o build/lib.linux-i686-2.6/matplotlib/backends/_tkagg.so > /usr/b

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Eric Firing
Ernest Adrogué wrote: > 14/10/09 @ 02:38 (+0200), thus spake qu...@gmx.at: >> okay. don't shoot me >> >> you need to start ipython with: >> >>ipython -pylab >> > > or alternatively, start ipython normally, import matplotlib.pyplot > and then call matplotlib.pylot.ion() which turns the 'interac

Re: [Matplotlib-users] Memory leak in pcolor?

2009-10-23 Thread Eric Firing
Teemu Ikonen wrote: > Hi all, > > Typing this (on ipython prompt with the relevant libraries imported) > > x = linspace(0,1.0,500) > y = linspace(0,1.0,500) > xg,yg = meshgrid(x,y) > c = rand(len(x), len(y)) > pcolor(xg,yg,c) > > Makes the ipython process to grow to have about 400 Mb of resident

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