[Matplotlib-users] Tick label on left and right for yaxis?

2010-03-18 Thread Werner F. Bruhin
Looking at set_ticks_position doc it says that "default" will reset ticks to be on both sides and labels on left, and set_label_position only allows for left or right. Is there any way to have ticks and ticks labels on both left and right? Werner --

[Matplotlib-users] toolbar

2010-03-18 Thread Philippe Crave
Hello, the following will display a figure with a plot. the figure will embed the classic toolbar. import matplotlib.pyplot as plt import numpy as np x=np.arange(0, 1, 0.1) fig = plt.figure() ax = fig.add_subplot(111) ax.plot(x) plt.show() from there, is it possible to add new buttons to the too

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Ben Axelrod
I don't see a reason why this can't be implemented. It is probably pretty simple to change the surface plot code to use a polar grid instead of a rectangular grid. Of course this won't change the look of the rectangular axes, but maybe that is not a problem. I invite you to take a shot at imp

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-18 Thread Michael Droettboom
David wrote: > Dear Michael, > > On 17/03/10 20:34, Michael Droettboom wrote: > >>> I have tried >>> >>> import matplotlib >>> matplotlib.use('GtkCairo') >>> >>> as you suggested, but they had no effect whatsoever. Even the error >>> output is the same. >> I'm surprised that isn't having any effect

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Jeff Klukas
The code below works perfectly. I think this should be included as an mplot3d codex. I'll look into what's required to submit a new example to the documentation. Thanks Armin! || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klu...@gmail | jeffyklu...@ai

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Armin Moser
Hi, you can create your supporting points on a regular r, phi grid and transform them then to cartesian coordinates: from mpl_toolkits.mplot3d import Axes3D import matplotlib import numpy as np from matplotlib import cm from matplotlib import pyplot as plt step = 0.04 maxval = 1.0 fig = plt.figur

[Matplotlib-users] Using colourmap from matplotlib

2010-03-18 Thread Ciarán Mooney
Hi, I am trying to create an image from an array using PIL, numpy and a colourmap from matplotlib. I got the colourmap by using ipython and the following code colourmap = [] for i in xrange(256): r,g,b,a = cm.jet(i) r = int(round((r * 255),0)) g = int(round((g * 255),0)) b = int(

[Matplotlib-users] ask.scipy.org is online

2010-03-18 Thread Gökhan Sever
Hello, Please tolerate my impatience for being the first announcing the new discussion platform :) and my cross-posting over the lists. The new site is beating at ask.scipy.org . David Warde-Farley is moving the questions from the old-site at advice.mechanicalkern.com (announced at SciPy09 by Rob

Re: [Matplotlib-users] ask.scipy.org is online

2010-03-18 Thread Chloe Lewis
Oh, nice. I've been flagging particularly useful-looking answers on the matplotlib mailing list for a while; I have four or five hundred marked. I don't want to do all the cleanup to make them an inoculant for a new site, but perhaps they would be useful for people to do a few each or thr

[Matplotlib-users] plot single vector with alpha

2010-03-18 Thread ---
Hello, I am trying to plot multiple intersecting lines from a given array. In order to visualize the amount of crossing points I am setting a certain alpha. However the crossings do not get darker as I expected. That is what I tried:: import numpy as np import matplotlib.pyplot as plt

Re: [Matplotlib-users] figure: centering data and plot.svg borders

2010-03-18 Thread tomislav_ma...@gmx.com
Thanks, adding the axes ([0,0,1,1]) helped! :) I'll just be careful so that my calculation domain is from 0 - 1 in x and y direction, this is something I have to do anyway. This will definitely work! Thanks again, Tomislav - Original Message - From: Friedrich Romstedt Sent: 03/17/10 07:

Re: [Matplotlib-users] toolbar

2010-03-18 Thread Gökhan Sever
On Thu, Mar 18, 2010 at 7:01 AM, Philippe Crave wrote: > Hello, > > the following will display a figure with a plot. the figure will embed > the classic toolbar. > > import matplotlib.pyplot as plt > import numpy as np > x=np.arange(0, 1, 0.1) > fig = plt.figure() > ax = fig.add_subplot(111) > ax.

Re: [Matplotlib-users] Plotting boolean/logical data type

2010-03-18 Thread Friedrich Romstedt
2010/3/4 Timo Heine : > Basically what I want to do is to draw a horizontal line with relative y > co-ordinates and absolute xmin and xmax co-ordinate. Then I could draw a > line when a bit is high and have it always in plot area even when zooming > etc. Like axhline(...) but with relative y and ab

Re: [Matplotlib-users] Using colourmap from matplotlib

2010-03-18 Thread Friedrich Romstedt
2010/3/18 Ciarán Mooney : >value = (log(x)/log(largest))*255 Just two thoughts: 1) I doubt the statement cited above is not correct, as it may also yield negative values as soon as 0 < x < 1. In fact, you are calculating log_{largest}(x). This crosses zero for x = 1. Wh

[Matplotlib-users] compiling matplotlib on Snow Leopard / tar error

2010-03-18 Thread Sven Duscha
I tried to follow the instructions given on http://blog.hyperjeff.net/?p=160 and modified the make.osx accordingly to compile matplotlib on OS X 10.6.2 (Snow Leopard). But after executing sudo make -f make.osx fetch deps mpl_build mpl_install I get the following error message: I had compiled