Re: [Matplotlib-users] Strange compression of matplotlib's eps figures

2012-03-19 Thread Joshua Lande
Setting interpolation="none" in imshow fixed the problem. Thanks for the help, Joshua On Mon, Mar 19, 2012 at 11:34 AM, Joshua Lande wrote: > Hi. I have attached a screenshot of the way the image looks when > viewed by Preview on my mac, evince on my RHEL5 machine, and the built > in google doc

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-19 Thread Paul Hobson
Sorry...That first line should be: fig, axes = plt.subplots(ncols=3) # note: subplotS not subplot On Mon, Mar 19, 2012 at 5:45 PM, Paul Hobson wrote: > Try it like this: > >               fig, axes = plt.subplots(3,1,1) >               ax1, ax2, ax3 = axes >               p1, = ax1.plot(self.dat

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-19 Thread Paul Hobson
Try it like this: fig, axes = plt.subplots(3,1,1) ax1, ax2, ax3 = axes p1, = ax1.plot(self.data0,self.data1) p2, = ax2.plot(self.data0,self.data2) p3, = ax3.plot(self.data0,self.data4) for ax in axes:

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-19 Thread questions anon
So when I add "np.logical_or" to the beginning of the script it makes no difference to the error message that I receive. I have tried reshaping the array but I receive an error message of: Traceback (most recent call last): File "", line 1, in f.reshape(691,886) ValueError: total size of ne

[Matplotlib-users] Exception in Tkinter callback

2012-03-19 Thread Andrew
Hello, I have been trying to figure out where my problem lies all day. Details: Mac Os X 10.6.8 Python/matplotlib : 1.1.0 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.pyc Matplotlib obtained from sourceforge. Running with ipython Error Mes

Re: [Matplotlib-users] Strange compression of matplotlib's eps figures

2012-03-19 Thread Benjamin Root
On Mon, Mar 19, 2012 at 1:36 PM, Moore, Eric (NIH/NIDDK) [F] < eric.moo...@nih.gov> wrote: > From: Benjamin Root [mailto:ben.r...@ou.edu] > Sent: Monday, March 19, 2012 2:00 PM > To: Joshua Lande > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] Strange compression of

Re: [Matplotlib-users] Strange compression of matplotlib's eps figures

2012-03-19 Thread Moore, Eric (NIH/NIDDK) [F]
From: Benjamin Root [mailto:ben.r...@ou.edu] Sent: Monday, March 19, 2012 2:00 PM To: Joshua Lande Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Strange compression of matplotlib's eps figures ... Using Firefox, I see no difference between the two images.  What are y

Re: [Matplotlib-users] Strange compression of matplotlib's eps figures

2012-03-19 Thread Benjamin Root
On Sun, Mar 18, 2012 at 5:07 PM, Joshua Lande wrote: > Hello. > > I have run into a strange error where matplotlib compresses images > that are saved with the eps backend. Strangely, this compression seems > to happen only for images saved with certain figure sizes. I created a > very simple exam

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread guido
Awesome John!! Thank you very much for your help on this... Guido From: John Hunter [mailto:jdh2...@gmail.com] Sent: Monday, March 19, 2012 12:52 PM To: Espinosa, Guido R Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery On M

Re: [Matplotlib-users] No clipping in svg mode

2012-03-19 Thread Michael Droettboom
What are you using to view the SVG? This works for me in Inkscape, Firefox and Google Chrome, but fails using rsvg 2.34 (which is used by ImageMagick and emacs, for example). It seems that rsvg doesn't like the clip path to appear after the object that uses it, even though this is allowed by

Re: [Matplotlib-users] xticks when using twinx()

2012-03-19 Thread Moore, Eric (NIH/NIDDK) [F]
Mario, When you call fig.add_subplot as you are doing, ax1 is None. I'm not sure why, but you don't need to set the xticks there anyway. Change your call to be ax1 = fig.add_subplot(111) that way ax1 != None. Then plot, create ax2, plot. You can then set the xticks by calling ax1.set_xticks

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread John Hunter
On Mon, Mar 19, 2012 at 12:46 PM, John Hunter wrote: > > Thanks, this has been going on for several days now and I just filed a > ticket with sourceforge. > > > https://sourceforge.net/apps/trac/sourceforge/ticket/24897 > In the meantime, a slightly out of date version of the website is avail

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread John Hunter
On Mon, Mar 19, 2012 at 11:46 AM, wrote: > Hi Guys, > > ** ** > > Accessing the Matplotlib gallery is killing access to the sourceforce > matplotlib site giving the “Too many requests” error. Anytime you access > the gallery, and attempt to view source of any thumbnail, the site gives > the

[Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread guido
Hi Guys, Accessing the Matplotlib gallery is killing access to the sourceforce matplotlib site giving the "Too many requests" error. Anytime you access the gallery, and attempt to view source of any thumbnail, the site gives the error. Then, the entire website becomes unusable, for example, if

[Matplotlib-users] Strange compression of matplotlib's eps figures

2012-03-19 Thread Joshua Lande
Hello. I have run into a strange error where matplotlib compresses images that are saved with the eps backend. Strangely, this compression seems to happen only for images saved with certain figure sizes. I created a very simple example which produces this behavior. import pylab as P impor

[Matplotlib-users] xticks when using twinx()

2012-03-19 Thread Mario Konschake
Hello, I to set custom xticks is usually used fig = plt.figure() ax1 = fig.add_subplot(xticks=[10,40,90]) plt.plot(range(100)) I now need to have a second y-axis and tried fig = plt.figure() ax1 = fig.add_subplot(xticks=[10,40,90]) plt.plot(range(100)) ax2 = plt.twinx() plt.plot([x*x for x in

[Matplotlib-users] No clipping in svg mode

2012-03-19 Thread Sebastian Ohl
Hi, when i have a dataset that covers an area larger than the area i want to show in my plot, then it should be clipped to the ranges i set to the axes (at least that is what i am expecting). when i do so and save the plot to a png-file everything is fine. but if i save it to an svg file, the plo

[Matplotlib-users] problem with font-family lists?

2012-03-19 Thread Zachary Pincus
Or, more likely, PEBCAK, but here goes: Following along with this example: http://matplotlib.sourceforge.net/examples/api/font_family_rc.html I tried the following (changing to comic sans so that "success" would be clear): from matplotlib import rcParams rcParams['font.family'] = 'sans-serif' rc

[Matplotlib-users] set xticks when using twinx()

2012-03-19 Thread Mario Konschake
Hello, I to set custom xticks is usually used fig = plt.figure() ax1 = fig.add_subplot(xticks=[10,40,90]) plt.plot(range(100)) I now need to have a second y-axis and tried fig = plt.figure() ax1 = fig.add_subplot(xticks=[10,40,90]) plt.plot(range(100)) ax2 = plt.twinx() plt.plot([x*x for x in