APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

SCALE post and replies

Return to the SCALE thread
Login to post to this thread

SCALE
Wallace Barbosa
7 Posts

Dear experts,

I am preparing a free fall software using ejs, but the scale of kinematical grafics have a 10^(-2) factor on time axis.

My code is in attach.

Cheers,
Wallace Barbosa


Replies to SCALE

Re: SCALE -
Francisco Esquembre
237 Posts

Wallace,

Is your code attached? I don't see it.

Paco



Re: Re: SCALE -
Wallace Barbosa
7 Posts

Francisco,

but get an error when I try to send the code. I can send it by e-mail?

Wallace.

Post edited August 22, 2013 at 10:01 PM EST.



Re: Re: Re: SCALE -
lookang Avatar
lookang
245 Posts

zip into *.zip and attach.
hope it helps :)


OSP@SG blog
OSP@SG Digital Library


Re: Re: Re: Re: SCALE -
Wallace Barbosa
7 Posts

Helped yes. Thank you.

Post edited August 23, 2013 at 8:42 AM EST.

Attached File: ejs_QuedaLivrefinal.zip



Re: Re: Re: Re: Re: SCALE -
lookang Avatar
lookang
245 Posts

i have fixed your graph

for y vs t graph

input X = t

input Y = y

for vy vs t graph

input X = t

input Y = vy

previously your model was input X = t*0.01 thus it is out by a factor of 0.01 i also posted here

http://weelookang.blogspot.sg/2013/08/input-x-t-for-graphs-in-ejs.html

enjoy!

Post edited August 25, 2013 at 9:35 PM EST.

Attached File: 2198_ejs_QuedaLivrefinal.zip


OSP@SG blog
OSP@SG Digital Library


Re: SCALE -
Francisco Esquembre
237 Posts

Wallace,

I just run your example. What is the problem?

The plotting panel tries to display the ticks on the axes automatically. When the limits are too big, instead of writing 1200, it uses exponential (scientific) notation and writes 1.2 x 10^3.
In order not to repeat the 10^3 for each tick, it writes it only once in one corner.

Is this what you mean?

Students should get used to this...

Paco

PS: If I misunderstood your post, please let me know.



Re: Re: SCALE -
Wallace Barbosa
7 Posts

Francisco,

you do not really understand, but lookang managed to solve my problem in the previous post. I am very grateful for your help.

Cheers,

Wallace



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book