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?

Yours,
John


Replies to change panel of plottingPanel

Re: change panel of plottingPanel -
Francisco Esquembre
237 Posts

This works:

_view.plottingPanel.setProperty("TitleY","velocity");

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

To test it, place it in an Initialization page.

Paco



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.
John



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