Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-25 Thread Paul Ivanov
, Paul Ivanov John Hunter, on 2008-11-23 07:36, wrote: On Sun, Nov 23, 2008 at 2:01 AM, Paul Ivanov [EMAIL PROTECTED] wrote: I took a stab at it, how does this look? I also took the liberty of adding alpha to LinearSegmentedColormap and updated its docstring changing two somewhat ambiguous

Re: [Matplotlib-users] Matplotlib or numpy bug?

2008-11-27 Thread Paul Ivanov
Hi Jesper, confirming the problem over here, as well. both numpy and mpl from svn (also on an Ubuntu 8.04 machine). good luck, Paul Jesper Larsen, on 2008-11-27 02:10, wrote: Hi Eric and Mauro, Thanks for your answers. 2008/11/27 Eric Firing [EMAIL PROTECTED]: It looks OK to me with

Re: [Matplotlib-users] how to generate one plot per key press?

2009-08-23 Thread Paul Ivanov
Try something like this: from os import sys from matplotlib import * from numpy.random import rand fig= pyplot.figure(figsize=(8,8), dpi=120) pyplot.show() while True: z= rand(20,20) pyplot.imshow(z) pyplot.draw() chr= sys.stdin.read(1) if chr=='q': break

Re: [Matplotlib-users] how to generate one plot per key press?

2009-08-23 Thread Paul Ivanov
appologies - sys.stdin.read(1) blocks until you give it a new line (Enter) that' s probably what you were having problems with. Paul Ivanov, on 2009-08-23 01:14, wrote: Try something like this: from os import sys from matplotlib import * from numpy.random import rand fig

[Matplotlib-users] better way to change spine and ticklabel colors?

2010-06-07 Thread Paul Ivanov
/blog/2010/06/07/ca-prop/ best, Paul Ivanov -- I only use the 314 gmail account for mailinglists. Please send off-list personal correspondence to my initials (two letters) at berkeley dot edu. -- ThinkGeek and WIRED's

[Matplotlib-users] aligning multiple legends

2010-09-06 Thread Paul Ivanov
left', borderaxespad=0, bbox_to_anchor=(.85,.85)) thanks in advance, Paul Ivanov -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge

Re: [Matplotlib-users] aligning multiple legends

2010-09-06 Thread Paul Ivanov
Paul Ivanov, on 2010-09-06 18:01, wrote: I want to have two legends (from different axes) positioned right up against on another. Here's a static example, except I want the second legend to be defined relative to the first (if leg is moved, I want leg2 to move as well). I can't seem

[Matplotlib-users] closing figure inside a callback seg faults

2010-10-15 Thread Paul Ivanov
crashes. Am I missing something? I'm using 1.0.0 with WXAgg thanks, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -- Download new Adobe(R

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-29 Thread Paul Ivanov
Alan G Isaac, on 2010-10-28 21:29, wrote: On 10/27/2010 8:21 PM, Paul Ivanov wrote: def onelegend_twinaxes(axis,twin): #make a joint axis legend lines = twin.get_lines() lines.extend(axis.get_lines()) labels = [l.get_label() for l in lines

Re: [Matplotlib-users] how to get legend size, try #2.

2010-10-29 Thread Paul Ivanov
something like bbox2 = bbox.transformed(l.axes.transAxes.inverted()) bbox2.width,bbox2.height The bboxes have other handy attributes like p0,p1,x0,x1,y0,y1 etc, as well as methods like bbox.padded(), etc. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] starting with pplots

2010-12-22 Thread Paul Ivanov
for your purposes, the code will be something like: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(x,y,z) best, -- Paul Ivanov 314 address only used for lists, off-list direct email

Re: [Matplotlib-users] bug with twinx and scientific style

2010-12-23 Thread Paul Ivanov
to 10.10). me too, and I kept forgetting to report it. PS. what's wrong with the sf.net bugzilla? I was not able to post the issue there -- this I do not know. 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] ODP: starting with pplots

2010-12-23 Thread Paul Ivanov
as plt x,y = rand(2,100) z = randint(1,6,100) for i,c,m in zip(range(1,6),'rgbmk', 'odp*s'): mask = z==i plt.plot(x[mask],y[mask], color=c, marker=m) hope that helps, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] manipulating histogram data from hist function

2010-12-27 Thread Paul Ivanov
instead of bars plt.step(edges[1:]+10,h) # same as above, with an offset 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] Drawing a circle around a letter

2010-12-28 Thread Paul Ivanov
solution. For more on transformations see: http://matplotlib.sourceforge.net/users/transforms_tutorial.html And you can wrap my hand-rolled solution nicely using something like: http://matplotlib.sourceforge.net/examples/api/line_with_text.html best, -- Paul Ivanov 314 address only used for lists

Re: [Matplotlib-users] Control of thread/program not returning to ipython after creating a plot.

2010-12-31 Thread Paul Ivanov
blocking. Can you try starting ipython -pylab -gthread and ipython -pylab -wthread to see if that fixes the issue? Make sure that you change the backend accordingly - and use plt.get_backend() to ensure the appropriate one is being used. -- Paul Ivanov 314 address only used for lists, off-list direct

Re: [Matplotlib-users] How to make a grid of (plot) grids?

2011-01-03 Thread Paul Ivanov
/pylab_examples/spine_placement_demo.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 -- Learn how

Re: [Matplotlib-users] How to make a grid of (plot) grids?

2011-01-04 Thread Paul Ivanov
Gf B, on 2011-01-04 12:31, wrote: On Mon, Jan 3, 2011 at 3:53 PM, Paul Ivanov pivanov...@gmail.com wrote: Gf B, on 2011-01-03 15:23, wrote: Can such a grid of grids be done with matplotlib? If so, could someone show me how? You'll be able to group the inner grids visually

Re: [Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Paul Ivanov
the right thing, let's adjust the xlim on that original plot. In [221]: ax2.set_xlim(norm(14),norm(40)) Out[221]: (0.34998, 1.0) In [222]: plt.draw() Hope this clears things up, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP

Re: [Matplotlib-users] semilogy

2011-01-05 Thread Paul Ivanov
the major ticks to be solid lines, and minor ticks to be dashed. I got all dashed. In [3]: plt.grid(which='major', linestyle='solid') In [4]: plt.grid(which='minor', linestyle='dashed') -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Paul Ivanov
) plt.subplots_adjust(hspace=.7, bottom=.2) #comment out the next line to see the original (0-40 colormap) ax1.set_xlim(rawlins_norm((14,40))) 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

Re: [Matplotlib-users] Setting tick colors on a Polar plot for a circumplex

2011-01-11 Thread Paul Ivanov
that helps, -- 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 -- Gaining the trust of online

Re: [Matplotlib-users] Newbie: How to control space between sets of bars in bar chart

2011-01-12 Thread Paul Ivanov
, there's just not room left between the indexes that you're using. Just change your ind assignment line to this: ind = np.arange(0, 2*N, 2) this spaces your indexes out more. hope that helps, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP

Re: [Matplotlib-users] sensible tick labels for log scale?

2011-01-12 Thread Paul Ivanov
from locator to locator, but you can quickly figure it out in ipython using tab completion in IPython once you grab a given locator object. 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] Hidding plots

2011-01-13 Thread Paul Ivanov
. lines = plot_date([2000.10,2000.20,2000.30],[1,2,3]) [l.set_visible(False) for l in lines] or something like this to toggle visibility on and off [l.set_visible(not l.get_visible()) for l in lines] best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] sensible tick labels for log scale (rephrased)

2011-01-13 Thread Paul Ivanov
will be placed at the minor tick locations. That would be a reasonable way to proceed - set the major ticks to be non-overlapping, and put the minor ones everywhere else. You've probably already found it, but just in case: http://matplotlib.sourceforge.net/api/ticker_api.html -- Paul Ivanov 314

Re: [Matplotlib-users] Analog of processing map() or protovis scale?

2011-01-16 Thread Paul Ivanov
. http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.LogNorm -- 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] ColorbarBase usage

2011-01-17 Thread Paul Ivanov
/gridspec.html 2. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html#toolkit-axes 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] Alpha not working from imshow?

2011-01-17 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 -- Protect Your Site and Customers from Malware Attacks

Re: [Matplotlib-users] what does numRows, numCols in subplot docs mean?

2011-01-18 Thread Paul Ivanov
From: Paul Ivanov pivanov...@gmail.com To: Larry Evans cppljev...@suddenlink.net Cc: Bcc: Subject: Re: [Matplotlib-users] what does numRows, numCols in subplot docs mean? Reply-To: In-Reply-To: 4d32e05d.4090...@suddenlink.net X-PGP-Key: http://pirsquared.org/PaulIvanov0F3E28F7.asc Larry Evans

Re: [Matplotlib-users] UNIX_import pyplot:_path.so: symbol _ZNSs4_Rep20_S_empty_rep_storageE:referenced symbol not found

2011-01-18 Thread Paul Ivanov
? Can you try deleting ../site-packages/matplotlib, and the build/ directory for your sources of mpl1.0.1 and reinstall? Please report back either way so we get a handle on this. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] rcParams['figure.dpi'] has no effect?

2011-01-21 Thread Paul Ivanov
may want a higher resolution, or to make the figure # background white #savefig.dpi : 100 # figure dots per inch So try playing around with that parameter (which is what you're doing if you call plt.savefig('name', dpi=300) best, -- Paul Ivanov 314 address only used for lists, off

Re: [Matplotlib-users] Legend for contour plots

2011-01-21 Thread Paul Ivanov
a collections attribute which holds the actual lines. hope that helps, -- 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] Suggestions for auto scaling fonts , etc for producing images at various scales

2011-01-21 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 -- Special Offer-- Download ArcSight Logger

Re: [Matplotlib-users] Suggestions for auto scaling fonts , etc for producing images at various scales

2011-01-21 Thread Paul Ivanov
Daryl Herzmann, on 2011-01-21 16:41, wrote: On Fri, Jan 21, 2011 at 4:15 PM, Paul Ivanov pivanov...@gmail.com wrote: I guess I'm not sure what you meant by the fonts looking 'nasty', so if font.size doesn't address your issue, could you post a small example that does the wrong thing

[Matplotlib-users] Automatic subplot_params for fitting label text (was Re: Suggestions for auto scaling fonts ,

2011-01-21 Thread Paul Ivanov
etc for producing images at various scales) Reply-To: In-Reply-To: 20110121232036.GA26739@ykcyc X-PGP-Key: http://pirsquared.org/PaulIvanov0F3E28F7.asc Paul Ivanov, on 2011-01-21 15:20, wrote: I'm almost certain that one *can* write a function to do this pro grammatically (without having

Re: [Matplotlib-users] a break in the y-axis

2011-01-22 Thread Paul Ivanov
://matplotlib.sourceforge.net/devel/add_new_projection.html Yet another way would be to re-label the tick lines (e.g. make .6 label be 1.0 and subtract that offset from your two outliers. 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] a break in the y-axis

2011-01-22 Thread Paul Ivanov
Paul Ivanov, on 2011-01-22 18:28, wrote: Ilya Shlyakhter, on 2011-01-22 19:06, wrote: Is it possible to create a break in the y-axis so that it has ticks for value 0-.2, then ticks for values .8-1.0, but devotes only a token amount of space to the area 0.2-0.8? I have a dataset

Re: [Matplotlib-users] a break in the y-axis

2011-01-24 Thread Paul Ivanov
Eric Firing, on 2011-01-22 17:49, wrote: Paul Ivanov, on 2011-01-22 18:28, wrote: Paul, Your example below is nice, and this question comes up quite often. If we don't already have a gallery example of this, you might want to add one. (Probably better to use deterministic fake data

Re: [Matplotlib-users] X and Y label position in axes_grid1.AxesGrid/ImageGrid

2011-01-24 Thread Paul Ivanov
('right') grid2[0].yaxis.set_label_text('foo') grid2[1].yaxis.set_label_position('right') grid2[1].yaxis.set_label_text('bar') plt.show() #--- best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id

Re: [Matplotlib-users] labels in ax = Axes3D(fig) are not aligned in parallel

2011-01-24 Thread Paul Ivanov
? # prevent the automatic rotation caused by view changes ax.yaxis.set_rotate_label(False) ax.yaxis.label.set_rotation(45) Beware that you'll have to adjust that angle on a per-view basis to get things to look right. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http

Re: [Matplotlib-users] floating bar chart?

2011-01-24 Thread Paul Ivanov
the 'bottom' keyword argument to bar. Note that the second parameter is height of the bar, *not* the top of the bar plt.bar([1,2,3,4], [2,2.5,5,3], bottom=[0,-1,1,2]) 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] 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

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] 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] 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] 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] 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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

  1   2   >