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.

change titles of ploattingPanel post and replies

Return to the change titles of ploattingPanel thread
Login to post to this thread

change panel of plottingPanel
John Val
13 Posts

Hi all,
I tried to change the axis titles in the javascript version with the instruction

_view.plottingPanel.setProperty("TitleY","new text")

in a custom function

But it does not work.
What should I do to make it work?


Replies to change panel of plottingPanel

Re: change panel of plottingPanel -
Francisco Esquembre
232 Posts

This works:


I just tested it. But make sure this sentence is called!

To test it, place it in an Initialization page.


Re: Re: change panel of plottingPanel -
John Val
13 Posts

Hi Paco,
Thanks a lot. So I was on the right track. What I did wrong is that I did set the title for the plottingPanel in the HTML view. It seems impossible to change the title afterwards.

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