Re: [Matplotlib-users] matplotlib + pyside

2011-07-14 Thread Eric Firing
On 07/13/2011 09:18 PM, Armagan Tarim wrote: Hi All, I have tried the sample PySide code given at http://www.scipy.org/Cookbook/Matplotlib/PySide the below excerpt is from my Python Shell for this sample code, which gives this error, Github master works with pyside. It is expected to emerge

[Matplotlib-users] sys arg

2011-07-14 Thread Pau
Hi, I have a very naive question ... howmdo I pass an arg to a matplotlib script? I need to run MyScript 34 12 67 25 for the script to use those numbers to multiply quantities for producing a plot... I am using sysarg[1], 2, 3 but is seems not to work. thanks

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-14 Thread JD83
Sorry, it doesn't work. ax.set_ylabel(foo) doesn't change anything (before ax.yaxis.cla()). And f.clf(keep_observers=False) still locks the process. But maybe I used wrong terms. Here is the displays ; left before the clearing ; right, after the clearing ; the plot is correctly renewed, but

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-14 Thread JD83
Sorry, it doesn't work. ax.set_ylabel(foo) doesn't change anything (before ax.yaxis.cla()). And f.clf(keep_observers=False) still locks the process. But maybe I used wrong terms. Here is the displays ; left before the clearing ; right, after the clearing ; the plot is correctly renewed, but

Re: [Matplotlib-users] sys arg

2011-07-14 Thread Benjamin Root
On Thursday, July 14, 2011, Pau vim.u...@googlemail.com wrote: Hi, I have a very naive question ... howmdo I pass an arg to a matplotlib script? I need to run MyScript 34 12 67 25 for the script to use those numbers to multiply quantities for producing a plot... I am using sysarg[1], 2, 3

Re: [Matplotlib-users] Question on LineCollection

2011-07-14 Thread Justin McCann
On Wed, Jul 13, 2011 at 6:49 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote: $ ipython -pylab # from matplotlib.collections import LineCollection f = figure() plot() ax = gca() vec = numpy.random.random((10,3)) segs = []

[Matplotlib-users] change background

2011-07-14 Thread T. Tofus von Blisstein
Hi, how can I invert the colors of axes/background from black/white to white/black? thanks... I have been googling for a while... T. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the

Re: [Matplotlib-users] sys arg

2011-07-14 Thread Pau
my problem was fixed with this var = float(sys.argv[1]) thanks! On 14 July 2011 16:24, Benjamin Root ben.r...@ou.edu wrote: On Thursday, July 14, 2011, Pau vim.u...@googlemail.com wrote: Hi, I have a very naive question ... howmdo I pass an arg to a matplotlib script? I need to run

[Matplotlib-users] [Basemap] contour plot just inside country

2011-07-14 Thread Yoshi Rokuko
hi, is it possible to restrict a contour plot to a country? if i grid my data to projection coordinates and then make a contour plot i can draw the country borders on top, but since the data plotted outside the country is a gridding artifact i would rather not plot it. to make it more clear what

Re: [Matplotlib-users] change background

2011-07-14 Thread Justin McCann
On Thu, Jul 14, 2011 at 3:57 PM, T. Tofus von Blisstein tuffst...@googlemail.com wrote: Hi, how can I invert the colors of axes/background from black/white to white/black? thanks... I have been googling for a while... If you want to do it for all your plots, you can mess with all of the

[Matplotlib-users] annotate

2011-07-14 Thread Christopher Brown
Hi, The following code displays a figure with both a red and a blue arrow (generated by annotate). But the pdf that is saved only shows the red one. It seems that the line ax1.set_xscale('log') is causing the trouble, because if it is commented out, the blue arrow reappears in the pdf. Any

Re: [Matplotlib-users] change background

2011-07-14 Thread Christopher Brown
The following helpers do the trick for me: def set_foregroundcolor(ax, color): '''For the specified axes, sets the color of the frame, major ticks, tick labels, axis labels, title and legend ''' for tl in ax.get_xticklines() + ax.get_yticklines():

Re: [Matplotlib-users] matplotlib + pyside

2011-07-14 Thread Gerald Storer
As Eric said Github master works with PySide. If you can't wait for a release and you don't want to run the Github version of MPL you can use the following code to render a plot inside a PySide app. Note that this will just show the plot image. You won't get the tool bar, status bar or any