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

2012-03-20 Thread Sebastian Ohl
Hi Mike, On 03/19/2012 06:53 PM, Michael Droettboom wrote: > 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 appea

[Matplotlib-users] How to plot oblique figure

2012-03-20 Thread 刘一新
The normal shape of a figure is a rectangle. But how can I create a oblique figure, i.e. with side length not perpendicular each other. Thanks! -- *Yi-Xin Liu, PHD* *Department of Macromolecular Science* *Fudan University* *Room 415, Yuejing Building * *Handan Rd. 220, **Shanghai, China* *Tel +86

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

2012-03-20 Thread kususe
Worked out. Thanks. Paul Hobson-2 wrote: > > 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) >>              

[Matplotlib-users] Re move all of the "box line"

2012-03-20 Thread kususe
I'd like to save an image with sole the graph. I set up ax.set_xticklabels([]) ax.set_frame_on(False) but I get an image with tra graph and some lines on the frame level, wich I wanna remove. I attach the image to be more understandable (I circle in red what I'd like to get off). Suggestio

[Matplotlib-users] Not understable behavior

2012-03-20 Thread kususe
If I set the parameter "transparent" in the "savefig" function, more line are plotted out on the same figure, when I use the subplot function too. If I don't set it, all works well. Suggestions? thanks in advance, K. -- View this message in context: http://old.nabble.com/Not-understable-beha

[Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Julien Rebetez
Hello, I've run into a strange behaviour of matplotlib while trying to figure out why my data was displayed incorrectly. I'm note quite sure if this is a bug or expected behaviour, but I feel it's kind of counter-intuitive, so I'm posting here. The attached python script does a scatter plot of som

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

2012-03-20 Thread Benjamin Root
On Mon, Mar 19, 2012 at 5:28 PM, questions anon wrote: > 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

Re: [Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Jerzy Karczmarczuk
LJulien Rebetez : > I've run into a strange behaviour of matplotlib while trying to figure > out why my data was displayed incorrectly. > I'm note quite sure if this is a bug or expected behaviour, but I feel > it's kind of counter-intuitive, so I'm posting here. > > ... > Now there seem to be a di

Re: [Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Julien Rebetez
Thank you for your answer. I've read the numpy tutorial and I get it that array and matrices behave differently. Now, what I find kind of strange is that the plot I get when directly feeding the matrices to scatter doesn't really seem to represent anything. I think that, if possible, showing an e

[Matplotlib-users] hooks for additional axis customization?

2012-03-20 Thread Zachary Pincus
Hi all, There are a couple of properties I'd like my plot axes to have by default (tick2On=False for the x and ytics, and having no 'right' or 'top' spines). These seem a bit obscure to put into the rcparams, but it would be nice to not have to call some function to fix this up every time I mak

Re: [Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Benjamin Root
On Tuesday, March 20, 2012, Julien Rebetez wrote: > Thank you for your answer. > > I've read the numpy tutorial and I get it that array and matrices > behave differently. > > Now, what I find kind of strange is that the plot I get when directly > feeding the matrices to scatter > doesn't really se

Re: [Matplotlib-users] Not understable behavior

2012-03-20 Thread Paul Hobson
On Tue, Mar 20, 2012 at 5:27 AM, kususe wrote: > > If I set the parameter "transparent" in the "savefig" function, more line are > plotted out on the same figure, when I use the subplot function too. > If I don't set it, all works well. > Suggestions? I don't follow what you're saying very well.

[Matplotlib-users] make a rectangle that doesn't change with zoom.

2012-03-20 Thread C M
I'm trying to make a rectangle that "highlights" a straight line of markers such that: 1) it surrounds/contains the points, basically like: -- | | | OO O

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

2012-03-20 Thread Moore, Eric (NIH/NIDDK) [F]
> -Original Message- > From: Moore, Eric (NIH/NIDDK) [F] > Sent: Monday, March 19, 2012 1:48 PM > To: matplotlib-users > Subject: Re: [Matplotlib-users] xticks when using twinx() > > Mario, > > When you call fig.add_subplot as you are doing, ax1 is None. I'm not > sure why, but you don't

Re: [Matplotlib-users] sample to contribute to mpl gallery

2012-03-20 Thread Daniel Hyams
Oops, one thing about the graph that I forgot to point out...does the antialiasing look a little funny? It seems a bit inconsistent, especially as the line goes flat. I increased the line width in an effort to make it less obvious; is there some other way to improve this behavior? --

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

2012-03-20 Thread questions anon
thanks for all of your responses. I agree with Benjamin that I have two issues, and firstly I need to figure out importing the text to a 2d array before plotting. I can take this question elsewhere but will run it by you first: My problem seems to be that when I use np.genfromtxt it imports my 2d a

Re: [Matplotlib-users] sample to contribute to mpl gallery

2012-03-20 Thread Tony Yu
On Tue, Mar 20, 2012 at 4:10 PM, Daniel Hyams wrote: > There was a request a while back to create plots that are more > application-oriented for the matplotlib gallery, so I'd like to submit this > one for inclusion. I tried to spruce it up a bit to show what MPL can do, > and I'm sure that the