Re: [Matplotlib-users] ImportError: No module named _backend_gdk

2014-08-05 Thread Paul Ivanov
? _ \,_ /:\ --(_)/-(_).../ | \ --...J Paul Ivanov ipython and matplotlib core developer http://pirsquared.org -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge

Re: [Matplotlib-users] matplot crases because of XDG_CONFIG_HOME variable

2014-05-15 Thread Paul Ivanov
, -- _ / \ A* \^ - ,./ _.`\\ / \ / ,--.S\/ \ / `~,_ \\ __o ? _ \,_ /:\ --(_)/-(_).../ | \ --...J Paul Ivanov http://pirsquared.org

Re: [Matplotlib-users] How to undo Zoom to Rectangle?

2014-04-28 Thread Paul Ivanov
? _ \,_ /:\ --(_)/-(_).../ | \ --...J Paul Ivanov http://pirsquared.org -- Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from

Re: [Matplotlib-users] How to undo Zoom to Rectangle?

2014-04-28 Thread Paul Ivanov
, -- _ / \ A* \^ - ,./ _.`\\ / \ / ,--.S\/ \ / `~,_ \\ __o ? _ \,_ /:\ --(_)/-(_).../ | \ --...J Paul Ivanov http://pirsquared.org -- Accelerate Dev Cycles with Automated

Re: [Matplotlib-users] multi colored text

2013-10-30 Thread Paul Ivanov
? _ \,_ /:\ --(_)/-(_).../ | \ --...J Paul Ivanov http://pirsquared.org -- Android is increasing in popularity, but the open development platform that developers love is also

[Matplotlib-users] another example of gradient color lines

2013-04-22 Thread Paul Ivanov
this last line to plot all ~140 colormaps if i==25: break plt.show() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- Precog

Re: [Matplotlib-users] help, installing matplotlib on mac 10.8

2013-04-21 Thread Paul Ivanov
is this stackoverflow post: http://stackoverflow.com/questions/5419439/matplotlib-pyplot-on-os-x-with-64-bit-python-from-python-org See if the solution suggested there (installing 32-bit version from python.org) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] Varying alpha in ListedColormap not working

2012-12-05 Thread Paul Ivanov
that code only made it's way into v1.2.0 (the latest stable), and was did not make it into v1.1.1 (or anything before it) -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 attachment: 2012-12-05-152024_591x478_scrot.png

Re: [Matplotlib-users] Figure zoom crosshair color

2012-11-15 Thread Paul Ivanov
for posterity. Again, thanks for your help. Happy to be helpful, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- Monitor your physical, virtual

Re: [Matplotlib-users] Figure zoom crosshair color

2012-11-13 Thread Paul Ivanov
be to change the colormap you're plotting with, or add an alpha value to the images you're plotting so that the black widgets can be seen. Maybe it's inelegant, but looks like the path of least resistance... best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] How matplotlib got me a job

2012-02-08 Thread Paul Ivanov
months, and glad we're starting to buck that trend. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- Keep Your Developer Skills Current

Re: [Matplotlib-users] Switch graphs

2012-02-07 Thread Paul Ivanov
) plt.show() I don't want to take away all of your fun, so have a look at adding (mouse clickable) buttons to this using either examples/widgets/buttons.py or examples/widgets/radio_buttons.py - depending on your preference. best, -- Paul Ivanov 314 address only used for lists, off-list

Re: [Matplotlib-users] Change xaxis labels

2012-02-07 Thread Paul Ivanov
at this example: http://matplotlib.sourceforge.net/examples/api/date_index_formatter.html Just define something like: def your_function(x,pos=None): return %d days % (x/86400) ax.xaxis.set_major_formatter(ticker.FuncFormatter(your_function)) best, -- Paul Ivanov 314 address only used for lists

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Paul Ivanov
() t = transforms.offset_copy(text._transform, y=ex.height, units='dots') plt.figure() rainbow_text(0.5,0.5,all unicorns poop rainbows ! ! !.split(), ['red', 'orange', 'brown', 'green', 'blue', 'purple', 'black'], size=40) best, -- Paul Ivanov 314 address only used for lists

Re: [Matplotlib-users] How matplotlib got me a job

2012-02-06 Thread Paul Ivanov
matplotlib by trying to answer the questions others have (with my trusty IPython tab-completion, and when necessary, doing what every Python Jedi does, and use the Source) - and by following along with the answers others provide. best, -- Paul Ivanov 314 address only used for lists, off-list

Re: [Matplotlib-users] (no subject)

2012-01-28 Thread Paul Ivanov
) Another way (if you're ok with only coloring the markers) would be to use ax1.scatter(x,y,c=colorlist) where the length of all three arguments is the same. Scatter can do that with the size of the markers by passing the s= argument. best, -- Paul Ivanov 314 address only used for lists, off

Re: [Matplotlib-users] plot_date() runtime error

2012-01-26 Thread Paul Ivanov
(1,0) before the plot_date call. Can you try to create a new figure just before the call to plot_date? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Re: [Matplotlib-users] Eye patterns (Heat plot?)

2012-01-23 Thread Paul Ivanov
) extent = [xedges[0], xedges[-1], yedges[-1], yedges[0]] ax = plt.gca() plt.hot() ax.imshow(H, extent=extent, interpolation='nearest') ax.invert_yaxis() I'm attaching the two images for reference best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] Grid problem?

2012-01-18 Thread Paul Ivanov
on your chosen backend. Can anyone else who has OS X verify David's error? David, it'd be useful to know what your matplotlib.__version__ is, as well as whether or not the error occurs on the latest version, if that's possible. best, -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] WYSIWYG figure

2012-01-11 Thread Paul Ivanov
'], forward=True) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register

Re: [Matplotlib-users] Bug in griddata

2012-01-10 Thread Paul Ivanov
represented by the floating point standard. The check for constant spacing likely should take into account and compare dx.ptp() to the average dx itself, or something like that. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] contourf with rgba colours

2011-12-30 Thread Paul Ivanov
on the limitation of mpl colormaps there. -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Paul Ivanov
there might be an easier way of doing that, which escapes me right now) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] constant spacing with griddata

2011-12-19 Thread Paul Ivanov
).resolution and same for yi, which is what happens with the values you provided to linspace, due to the way linspace works. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Re: [Matplotlib-users] set background of axes + labels

2011-11-11 Thread Paul Ivanov
, -- Paul Ivanov 314 address only used for lists,  off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1

Re: [Matplotlib-users] legend border, frameon keyword

2011-11-11 Thread Paul Ivanov
Oops, didn't reply to list last time: On Fri, Nov 11, 2011 at 8:53 AM, Paul Ivanov pivanov...@gmail.com wrote: On Tue, Nov 8, 2011 at 4:49 PM, magurling magurl...@gmail.com wrote: I want a legend without the black border. I've tried a few things that have been suggested on this forum

Re: [Matplotlib-users] legend border, frameon keyword

2011-11-11 Thread Paul Ivanov
On Fri, Nov 11, 2011 at 8:53 AM, Paul Ivanov pivanov...@gmail.com wrote: might you be on an old matplotlib.__version__? On Fri, Nov 11, 2011 at 11:18 AM, magurling magurl...@gmail.com wrote: This is probably it. I installed by apt-get install but keep getting version 0.99.3 installed. I need

Re: [Matplotlib-users] legend border, frameon keyword

2011-11-11 Thread Paul Ivanov
they resolved it, so that others can follow in their footsteps later. best, -- Paul Ivanov 314 address only used for lists,  off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- RSA(R

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-25 Thread Paul Ivanov
an IRC client handy, you can just use this web-based one. http://webchat.freenode.net/?channels=matplotlib best, -- Paul Ivanov 314 address only used for lists,  off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Re: [Matplotlib-users] 0.99.1.2: error in afm.py [RESOLVED]

2011-10-25 Thread Paul Ivanov
On Tue, Oct 25, 2011 at 4:59 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Tue, 25 Oct 2011, Paul Ivanov wrote: I see you sent this just a few minutes ago - let's try to figure this out interactively via IRC on #matplotlib channel on freenode. If you don't have an IRC client handy, you

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Paul Ivanov
that ship with matplotlib (but we were on your machine - so something changed them). Please diff your pagko8a.afm against https://raw.github.com/matplotlib/matplotlib/master/lib/matplotlib/mpl-data/fonts/afm/pagko8a.afm best, -- Paul Ivanov 314 address only used for lists,  off-list direct email

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-24 Thread Paul Ivanov
On Mon, Oct 24, 2011 at 3:26 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 24 Oct 2011, Paul Ivanov wrote: those two properties should not have spaces in them - according the the AFM file spec that I could find - they should be one word - which is what matplotlib expects

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Paul Ivanov
that there isn't some stale pointer to an old version of matplotlib out there - so can you let us know what procedure you used to do the upgrade? best, -- Paul Ivanov 314 address only used for lists,  off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Paul Ivanov
at 0x16d7de70] can you try explicitly swapping your axes? f.axes = [f.axes[1],f.axes[0]] instead of the call to reverse? BTW, what's matplotlib.axes.AxesSubplot? I couldn't find this class. see SubplotBase class and subplot_class_factory function in matplotlib/axes.py best, -- Paul Ivanov 314

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-24 Thread Paul Ivanov
, and turn it off for all others lying on top of it. You can see what happens if you don't do this by omitting the calls to set_frame_on, and then verifying that the second line does not show up (because the original axes' frame patch is blocking it. best, -- Paul Ivanov 314 address only used

Re: [Matplotlib-users] Error when zooming manually with the mouse outside of the axes

2011-09-24 Thread Paul Ivanov
the screen. :) This problem was fixed by 2c924046 (Jim Radford 2011-03-08 15:07:23 -0800 459) and now reads: self.canvas.set_rubberband(int(x0), int(y0), int(x1), int(y1)) Please update either that line alone, or checkout the latest matplotlib sources from GitHub. best, -- Paul Ivanov 314

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Paul Ivanov
get part-way to what you want by setting ax.figure=f before calling f.add_axes(ax). Then, you'll have ax in both figures, but its transforms are still rooted in the first figure, so resizing the first figure, you'll see changes to the size of the plot in the second figure. best, -- Paul Ivanov 314

Re: [Matplotlib-users] cannot display label on my axes

2011-08-11 Thread Paul Ivanov
about rotated text not working, due to the interface to GTK we were using) so perhaps you ran into this. Can you try the gtkagg backend? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description

Re: [Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread Paul Ivanov
blitting just the relevant axis? Look at the blitting animation examples (on the site) which have moved to examples/animation/old_animation in git. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc

Re: [Matplotlib-users] plot with discontinuous x-axis

2011-08-01 Thread Paul Ivanov
an example for this in git: https://github.com/matplotlib/matplotlib/blob/master/examples/pylab_examples/broken_axis.py but now I see that's exactly the example that's the top answer, there, heh. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org

Re: [Matplotlib-users] hot to draw a line connecting a list of points

2011-07-21 Thread Paul Ivanov
, y, lw=5., alpha=0.4) frame1.add_line(line) The above can be done with just two lines: x,y = zip(*((267, 140), (380, 773), (267, 958))) 1.plot(x,y) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-13 Thread Paul Ivanov
in the figure. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- AppSumo Presents a FREE Video

Re: [Matplotlib-users] Symbol plotting

2011-07-13 Thread Paul Ivanov
, and its set_transform() method) to do the positioning/scaling. Is there a better way? This looks similar enough: http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org

Re: [Matplotlib-users] easy_install and pip install both fail

2011-07-12 Thread Paul Ivanov
/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz The error which causes both to fail is: Hi Bogdan, are you specifically trying to install that old version of matplotlib? If not, add the -U flag to easy_install to try to grab a newer version best, -- Paul Ivanov 314 address only used

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Paul Ivanov
instead of subplot(211) you use plt.axes(...) to create them (I guess there may be a nicer method, not sure). I belive the plt.subplots() command is what Sebastian was referring to. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP

Re: [Matplotlib-users] build problems

2011-07-08 Thread Paul Ivanov
to you).A best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- All of the data generated

Re: [Matplotlib-users] Matplotlib crash on Windows 2008 Server

2011-07-08 Thread Paul Ivanov
, but is this an application that you built and compiled? Is recompiling matplotlib an option? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Change color for fill_between to contour plot

2011-07-08 Thread Paul Ivanov
://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Crash using twin axis label with PyGTK

2011-04-22 Thread Paul Ivanov
Jason Heeris, on 2011-04-23 00:29, wrote: On 22 April 2011 03:56, Paul Ivanov pivanov...@gmail.com wrote: Thanks for the report, Jason. It's a bug - could you please file a bug report, so we can keep track of it? Will do, thanks for the workarounds :) or if it's an option, use gtkagg

Re: [Matplotlib-users] Change a few pixels color

2011-04-22 Thread Paul Ivanov
() ax.add_artist(r) plt.draw() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Fulfilling the Lean

Re: [Matplotlib-users] Crash using twin axis label with PyGTK

2011-04-21 Thread Paul Ivanov
do: figure.subplotpars.right=.8 # make smaller if still crashes or if it's an option, use gtkagg, which doesn't suffer from the crash. from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvasGTK best, -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] stuck: need help with pythonxy/matplotlib for the first time

2011-04-13 Thread Paul Ivanov
? what is the error message? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Forrester

Re: [Matplotlib-users] scaling multiple plots same axis?

2011-04-13 Thread Paul Ivanov
in one dimension, something like twinx() or twiny() would work to create new axes on top of another one, sharing the one of the dimension, while being independent in the other. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] pylab plot problem

2011-04-13 Thread Paul Ivanov
you'll have. len(set(zip(n_x,n_y))) will tell you how many points you should see. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] setting the default markerfacecolor

2011-04-08 Thread Paul Ivanov
that functionality. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Xperia(TM) PLAY It's a major

Re: [Matplotlib-users] setting the default markerfacecolor

2011-04-07 Thread Paul Ivanov
matplotlib more consistent. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Xperia(TM) PLAY It's

Re: [Matplotlib-users] Draw only left and top part of frame

2011-04-06 Thread Paul Ivanov
(): ax.spines['left'].set_visible(True) if ax.is_last_col(): ax.spines['right'].set_visible(True) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] get_axis_off()?

2011-04-06 Thread Paul Ivanov
, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Xperia(TM) PLAY It's a major breakthrough

Re: [Matplotlib-users] Computer freezes plotting

2011-04-06 Thread Paul Ivanov
, we'd be able to much more definitively track down the problem and find a solution. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] plot dict

2011-03-29 Thread Paul Ivanov
or slider of the zipper (since it's at the top, you'll be pulling it down, or unzipping): see http://docs.python.org/library/functions.html#zip best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc

Re: [Matplotlib-users] matplotlib.test() no errors, but $nosetest matplotlib.tests - errors and failure?

2011-03-28 Thread Paul Ivanov
that these tests weren't running before. Any developers want to chime in on this? best, -- Paul Ivanov http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 Michael Droettboom, on 2010-07-27 11:19, wrote: Hmm... surprisingly, I am actually able to reproduce this sort of behaviour here. I'll

[Matplotlib-users] mpl on OS X with Python 3.1 (was Re: [matplotlib-devel] Help)

2011-03-25 Thread Paul Ivanov
in progress, what's been completed, and what's left to do here: https://github.com/matplotlib/matplotlib-py3/wiki (Also, this is more of a matplotlib-users question, so I'm replying to that list) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG

Re: [Matplotlib-users] matplotlib.test() no errors, but $nosetest matplotlib.tests - errors and failure?

2011-03-25 Thread Paul Ivanov
just that these tests weren't running before. Any developers want to chime in on this? best, -- Paul Ivanov http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 Michael Droettboom, on 2010-07-27 11:19, wrote: Hmm... surprisingly, I am actually able to reproduce this sort of=20 behaviour here

Re: [Matplotlib-users] Specifying exactly zero inter-plot spacing in nested grids

2011-03-24 Thread Paul Ivanov
in January, 2011 at [1] or [2]: 1. http://old.nabble.com/How-to-make-a-grid-of-%28plot%29-grids--td30581281.html 2. http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19710.html best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG

Re: [Matplotlib-users] autoscale y for current x range on display

2011-03-23 Thread Paul Ivanov
) plt.xlim(0,30) # for the next line to work in ipython you'll need to # paste/or cpaste this entire script, or just pause before # changing the xlim again to verify that it works as intended raw_input(press return for to rescale) plt.xlim(0,55) best, -- Paul Ivanov 314 address only used

Re: [Matplotlib-users] Plot linestyle as an arrow

2011-03-22 Thread Paul Ivanov
in enumerate(labels): x_loc = data1[i] y_loc = data2[i] txt = ax.annotate(label, xy=(x_loc, y_loc), size=8, xytext=(-10, 10), textcoords='offset points', arrowprops=None) plt.axis('equal') plt.show() best, -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] color coding Xplot with othe property (New User)

2011-03-22 Thread Paul Ivanov
= np.random.rand(npts) d = np.random.rand(npts) plt.scatter(a,b,c=c,s=c*100, marker='o') best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] multiline legend tags

2011-03-17 Thread Paul Ivanov
with newlines best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Colocation vs. Managed Hosting

Re: [Matplotlib-users] Grids independent of data coordinates

2011-03-17 Thread Paul Ivanov
be to make a polar subplot and transform your rectangular data to polar coordinates for the purposes of plotting (rather than transforming the grid to polar). This way you'll get your clipping for free. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] how to improve the font of matplotlib images ?

2011-03-17 Thread Paul Ivanov
rcParam to affect all plots. You might also play with using different fontsize parameters when calling .text(...) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] matplotlib.dates date within a loop

2011-03-17 Thread Paul Ivanov
= ...' line inside the for-loop, and you'll be all set. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Make the area a bit larger

2011-03-02 Thread Paul Ivanov
, on 2011-03-01 12:58, wrote: Paul Ivanov pivanov...@gmail.com writes: You can do this with: ax = plt.subplot(111) ax.plot(range(10)) ax.set_ymargin(.2) ax.set_xmargin(.1) # or ax.margins(.1,.2) ax.autoscale() plt.draw() see also the docstring for ax.autoscale_view for more

Re: [Matplotlib-users] axisGrid - blank subplots

2011-02-28 Thread Paul Ivanov
have an even number of subplot figures so the grid is filled and this situation does not occur. Hi Jim, how's this: import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import AxesGrid ag = AxesGrid(plt.figure(),(0,0,1,1),(2,3)) ag.axes_all[-1].set_visible(False) best, -- Paul Ivanov 314

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Paul Ivanov
. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Free Software Download: Index, Search

Re: [Matplotlib-users] Control twinx series zorder: ax2 series behind ax1 series, or place ax2 on left, ax1 on right

2011-02-25 Thread Paul Ivanov
, the line chart's y-axis on the left. Can this be controlled? ax1.yaxis.tick_right() ax2.yaxis.tick_left() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Dual Y-Axes on Imshow

2011-02-22 Thread Paul Ivanov
= mpl.ticker.FuncFormatter(lambda x,pos: %.2f%np.exp(x)) ax2.yaxis.set_major_formatter(fmtr) plt.draw() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Paul Ivanov
? # pyplot (matlab-like) interface plt.errorbar? As Daniel pointed out, the question mark will pull up the docstring if you're using IPython, but if you aren't, you can always call python's help. help(plt.errorbar) which will print the docstring for you. hope that helps, -- Paul Ivanov 314

Re: [Matplotlib-users] ipython -pylab fails but from pylab import plot works on mac?

2011-02-22 Thread Paul Ivanov
], which I believe were addressed in [3], and are waiting to be merged. 1. https://github.com/ipython/ipython/issues/#issue/202 2. https://github.com/ipython/ipython/issues/#issue/185 3. https://github.com/ipython/ipython/pull/237 best, -- Paul Ivanov 314 address only used for lists, off-list

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Paul Ivanov
run into building matplotlib for your 64-bit python. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] histogram for discrete data

2011-02-15 Thread Paul Ivanov
]), a list of 20 Patch objects) In [11]: ax.hist(a) # the default bins=10 (array([4, 2, 3, 1, 0, 2, 1, 2, 0, 5]), array([ 0. , 1.9, 3.8, 5.7, 7.6, 9.5, 11.4, 13.3, 15.2, 17.1, 19. ]), a list of 10 Patch objects) best, -- Paul Ivanov 314 address only used for lists, off

Re: [Matplotlib-users] matploblib multithreading

2011-02-15 Thread Paul Ivanov
, there is no need to send duplicates of mailing list questions directly to me. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Checking if figure is on screen

2011-02-14 Thread Paul Ivanov
, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- The ultimate all-in-one performance toolkit: Intel

Re: [Matplotlib-users] Update individual elements (i.e an artist) for drawing

2011-02-14 Thread Paul Ivanov
that. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- The ultimate all-in-one performance

Re: [Matplotlib-users] Happy Valentine's Day

2011-02-14 Thread Paul Ivanov
ax.figure.canvas.mpl_disconnect(%d) %cid print #run the line above to 'flatline' (stop heartbeat) plt.show() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] [matplotlib]problem

2011-02-10 Thread Paul Ivanov
participants, etc. Our collective involvement in whatever capacity is what makes projects like matplotlib thrive! best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Stair plot

2011-02-09 Thread Paul Ivanov
with step's where parameter for slightly different behavior of where the transition between the steps occurs. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] [matplotlib]problem

2011-02-09 Thread Paul Ivanov
there are python2.7 64 bit version for OS X at this time) more on how to do that in the comments of the top reply here: http://stackoverflow.com/questions/3606964/no-matching-architecture-in-universal-wrapper-problem-in-wxpython best, -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] properties of patch of an axes instance.

2011-02-08 Thread Paul Ivanov
, .set_linewidth To hide the tickmarks that are right next to the spines, you can do: ax1.xaxis.tick_bottom() ax1.yaxis.tick_left() and finally, to color the ticks in red as well, do: ax1.tick_params(color='red') best, -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] hide labels

2011-02-06 Thread Paul Ivanov
) #shown_lab[-1].set_visible(False) plt.show() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 attachment: hide-ticklabels.png signature.asc Description: Digital signature

Re: [Matplotlib-users] Is it possible to plot axes with arrows ?

2011-02-03 Thread Paul Ivanov
From: Paul Ivanov pivanov...@gmail.com To: Francois Maltey fmal...@nerim.fr Cc: cc: Subject: Re: [Matplotlib-users] Is it possible to plot axes with arrows ? Reply-To: In-Reply-To: 4d496f84.7070...@nerim.fr X-PGP-Key: http://pirsquared.org/PaulIvanov0F3E28F7.asc Francois Maltey, on 2011-02-02

Re: [Matplotlib-users] Limits with errorbar

2011-02-01 Thread Paul Ivanov
=err, color='g',linestyle='None',xuplims=True) plt.show() Hi Francesco, plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True) I'm not sure what you're hoping to see, but you should either use xerr with xuplims, or yerr with uplims. best, -- Paul Ivanov 314 address only used

Re: [Matplotlib-users] Problem with matshow and yticks: the rows of a matrix drawn by matshow does not have equal height

2011-02-01 Thread Paul Ivanov
would be to set the ylim after the call to yticks, like this: plt.ylim(3.5, -0.5) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Paul Ivanov
Jeremy Conlin, on 2011-02-01 16:48, wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 - Green 1 x = inf - Red

Re: [Matplotlib-users] fixing overlapping annotations

2011-02-01 Thread Paul Ivanov
-for-tick-labels best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- Special Offer-- Download

Re: [Matplotlib-users] fixing overlapping annotations

2011-02-01 Thread Paul Ivanov
Paul Ivanov, on 2011-02-01 17:14, wrote: Kris Kuhlman, on 2011-02-01 18:03, wrote: I am trying to plot a large number of locations that need to be labeled. Often the locations are quite clustered and the resulting text is unreadable. I have been looking through the API and examples

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Paul Ivanov
On the other hand, if you just want the contour to not show up, you can pass it alpha=0.0 to make it completely transparent and invisible (but it's still there) contourset = pyplot.contour(.., alpha=0.0) # later call contourset.set_alpha(1.0) to make visible again best, -- Paul Ivanov 314 address

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-27 Thread Paul Ivanov
). Che, just make a numpy array out of your two lists, and you'll be able to subtract one from the other. import numpy as np top = np.array(top) bot = np.array(bot) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Paul Ivanov
, z should be, and then create a contour using C = matplotlib.contour._cntr.Cntr(x,y,z) and then for each level, do something like what QuadContourSet._get_allsegs_and_allkinds does C.trace(..) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-26 Thread Paul Ivanov
, times-bot, bottom=bot, align='center') ax.yaxis_date() fig.autofmt_xdate() plt.show() best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature

Re: [Matplotlib-users] colorbar+log+latex

2011-01-25 Thread Paul Ivanov
=350) cbar = plt.colorbar() cbar.ax.set_ylim(cbar.norm((300,350))) cbar.ax.set_xlim(cbar.norm((300,350))) # maintain aspect ratio cbar.set_ticks(np.linspace(300,350,6)) # didn't see a quick way to fix the outline cbar.outline.set_visible(False) cbar.ax.set_frame_on(True) plt.draw() best, -- Paul

  1   2   >