[SciPy-user] plotting question

matt matt at hotdispatch.com
Thu Jul 22 20:29:12 CDT 2004


Cool, using gplt I got it to work with:


         gplt.plot(x_stable,y_stable,'with points title 
"stable"',x_unstable,y_un
stable,'with points title "unstable"')
         gplt.logx()
         gplt.xtitle(parameter_name)
         gplt.ytitle(state_var_name)
         gplt.title(system_name)
         gplt.output("../web/" + state_var_name + ".png",'png color')

There aren't really good docs, and it took me way to long to figure out 
the details of this particular example.  When I finally finish I think 
I'll write a tutorial and include it on the scipy wiki.

-Matt


On Jul 22, 2004, at 4:04 PM, Travis E. Oliphant wrote:

> matt wrote:
>> I read the wikki plotting tutorial and was left with a few questions. 
>>  I want my code to automatically generate plots and dump them to 
>> files instead of displaying them.  Any old image format or pdf would 
>> be fine.  Is there a way to do this?  I assume there must be since 
>> that functionality is integral to gnuplot.  An example or pointer to 
>> one would be very useful.  I'd be happy to add whatever I get to the 
>> plotting tutorial on the wikki.
>
> xplt.window(0,display='', hcp='output.ps')
> xplt.plg(rand(1000))
> xplt.hcp()
>
> shows that this is possible with xplt but it may take a few fixes to 
> get it to play nice with xplt.plot
>
> -Travis
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>



More information about the SciPy-user mailing list