|
From: Jose A. M. H <jam...@fd...> - 2008-09-12 15:24:19
|
Is your name really Gabor Kalman ????
What a very filtered name !!!.
:-O
----- Original Message -----
From: Gabor Kalman
To: Vis...@li...
Cc: Bru...@nc...
Sent: Friday, September 12, 2008 5:11 PM
Subject: [Visualpython-users] Clarifying question regarding semi-log plots
In my earlier (9/11/08) "submit" I asked:
"How can one "fool" Vpython to display y=f(log10(x)) as a semi-log plot?"
To clarify:
How can I change the "tick-marks" to a log scale?
see sample program below:
************************
from visual import *
from visual.graph import *
graph1=gdisplay(x=0,y=0, width=400,height=300,title="semilog",xtitle="f=10^x",
ytitle="y",xmax=4,xmin=1,ymax=500,ymin=0,
foreground=color.black,background=color.white)
plot1 = gvbars(delta=0.5, color=color.green)
x=[10,100,1000]
y=[400,200,100]
for i in range(0,3):
plot1.plot(pos=(log10(x[i]),y[i]))
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------------
_______________________________________________
Visualpython-users mailing list
Vis...@li...
https://lists.sourceforge.net/lists/listinfo/visualpython-users
|