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

2011-03-25 Thread Paul Ivanov
Blast from the past! I just ran into this and it comes from the fact that 'matplotlib.tests.test_text' is not in the default_test_modules variable inside matplotlib's __init__.py Here's the necessary diff: index 82633a5..649e4d8 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init

[Matplotlib-users] 3D line segment plots?

2011-03-25 Thread Virgil Stokes
I have used the following code (taken from a matplotlib example) to produce a 3D plot of planar polygons, from mpl_toolkits.mplot3d import Axes3D from matplotlib.collections import PolyCollection from matplotlib.colors import colorConverter import matplotlib.pyplot as plt import numpy as np np.

[Matplotlib-users] usetex = True + eps output -> letters are only curves

2011-03-25 Thread Lebostein
Hi, if I create an eps from a matplotlib chart with matplot.rc('font', size=fsize, family='serif', serif='Computer Modern Roman') matplot.rc('text', usetex = True) matplot.rc('text.latex', unicode = True) then I can't mark the letters in eps viewer. And I can't search for letters and words in t

[Matplotlib-users] How to control grid properties in 3D?

2011-03-25 Thread unit
Dear All, I can't figure out how to make the grid and axes lines more apparent in 3D plot created by Axes3D. Similar problem was posted a while ago (http://old.nabble.com/How-to-make-3-D-axes-grid-more-visible--td28917367.html#a28917367) but there was no resolution. I know how to turn the grid

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

2011-03-25 Thread Paul Ivanov
Georges Arsouze, on 2011-03-16 09:48, wrote: > Hello > I'am working with Python3.1 under Mac Os Snow Leopard > I download matplotlib with > http://www.cgl.ucsf.edu/Outreach/pc204/matplotlib.html > > It doesn't work > Can you help me ? Hi Georges, What version of matplotlib are you trying to run

Re: [Matplotlib-users] Access to contents of bins of a matplotlib histogram

2011-03-25 Thread Andre' Walker-Loud
Hi Chris, I think I understand what you are asking. I think the key point is I have used "np.histogram" where you are using "np.hist" When I make my plots, I use np.hist, but then to access the data, I use np.histogram. Just to demonstrate, incase this is not what you want, I have found, if

Re: [Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Ah, sorry for the duplicate message! Cheers, G On 15/03/2011 11:30, Giovanni Luca Ciampaglia wrote: > Hi all, > I call savefig by passing to it a file-like object but it appears to not > get the graphics format right: > > f = open('not_a_pdf.pdf', 'w') > plot([1,2,3]) > savefig(f) > > but it pro

Re: [Matplotlib-users] ramp shaped bars?

2011-03-25 Thread Jim Ford
Well, what do you know? For once, the call of the noob, "Hey! there must be a bug" speaks truth. Thanks, Angus! I added a little code to duplicate the last point until the array length is at least 5, and everything looks just fine. On 03/25/2011 01:10 PM, Angus McMorland wrote: > On 25 March 20

Re: [Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Fabrice Silva
Le mardi 15 mars 2011 à 11:30 +0100, Giovanni Luca Ciampaglia a écrit : > Hi all, > I call savefig by passing to it a file-like object but it appears to not > get the graphics format right: > > f = open('not_a_pdf.pdf', 'w') > plot([1,2,3]) > savefig(f) > > but it produces a PNG image. Can anybo

[Matplotlib-users] Different xtick pads for subplots within figure

2011-03-25 Thread NotBrianCox
I'm plotting a series of sub plots within a figure, where most are small sub plots, but the last one spans the width of the figure. For the final subplot only, I want to set the xtick pad to 20. Something like: import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(2,2,1) ax2

[Matplotlib-users] 3d Surface-Contour Plot

2011-03-25 Thread herbie13
Hello, I basically have a Chi-Squared distribution that is dependent on 3 variables. eg. X2(x, y, z) What I would like to do is be able to plot the chi-squared + 1 surface in 3-dimensions. eg. I would like to have the three axes as x, y and z. and then have a surface (its going to look like a cl

[Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Hi all, I call savefig by passing to it a file-like object but it appears to not get the graphics format right: f = open('not_a_pdf.pdf', 'w') plot([1,2,3]) savefig(f) but it produces a PNG image. Can anybody confirm this? I am on matplotlib 0.99.3 Cheers, -- Giovanni L. Ciampaglia PhD Studen

[Matplotlib-users] disable shortcut keys

2011-03-25 Thread Nicholas Fisher
Hello,    I have written a program which plots some data and then performs certain actions when the "down arrow" key is pressed.  The problem is that the "down arrow" key is also used to move the focus to the pylab tool bar at the bottom of the window.  It seems to move the focus to the tool bar

[Matplotlib-users] orienting 2d plots in 3d

2011-03-25 Thread John F. Gibson
I would like to construct a 3d plot consisting of several 2d quiver plots on orthogonal, intersecting planes. Is this possible with matplotlib? In matlab I do it by construct several 2d graph and then reorienting them in the 3d space using the 'rotate' function. E.g. xaxis = [1 0 0]; h = quiver(

[Matplotlib-users] Access to contents of bins of a matplotlib histogram

2011-03-25 Thread Chris Edwards
Hi, I would like to access values in the bins of a matplotlib histogram. The following example script is an attempt to do this. Clearly pdf contains floating point numbers, but I am unable to access them. Help with this problem would be much appreciated. Chris

[Matplotlib-users] use of data coordinates in axhline?

2011-03-25 Thread Mike Kaufman
What the best way to to use data coordinates rather than axes coordinates for xmin and xmax with axhline? Here's my kludgy solution, but it's not elegant: plot(arange(20)) ax = gca() inv = ax.transAxes.inverted() x = inv.transform(ax.transData.transform([10,0])) ax.axhline(10, xmax=x[0]) I tri

Re: [Matplotlib-users] ramp shaped bars?

2011-03-25 Thread Angus McMorland
On 25 March 2011 07:31, jford14685 wrote: > I am a newbie Python programmer trying to make 3d barplots like > http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html this > one on the Matplotlib site. > > When I run the demo source (python bars3d_demo.py) it works fine. I then > change

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

2011-03-25 Thread Angus McMorland
Thanks Paul, On 24 March 2011 19:23, Paul Ivanov wrote: > I think you can get the desired functionality with gridspec > alone. Take a look at > doc/users/plotting/examples/demo_gridspec06.py which you can find > here > > https://github.com/matplotlib/matplotlib/blob/f1c8/doc/users/plotting/exampl

[Matplotlib-users] ramp shaped bars?

2011-03-25 Thread jford14685
I am a newbie Python programmer trying to make 3d barplots like http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html this one on the Matplotlib site. When I run the demo source (python bars3d_demo.py) it works fine. I then changed the way xs and ys are assigned, to xs = np.arra