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.

Difficulty scaling fonts and vector widths as a plotting panel changes size.

Return to the OSP Programming forum
Login to post to this thread

How do you rescale vector widths and message fonts as a plotting panel changes size? - August 11, 2016 at 5:31
Stephen Salser
8 Posts

The "Messages" for a plotting panel have a font size that appears to be determined by the "Font Factor".  

Likewise, the vector widths in a VectorField2D are set by the "LineWidth".

Neither of these things changes automatically as the plotting panel is expanded in size or reduced in size.  This causes major problems with appearance, readability, and functionality.

Is there any way to keep track of the plotting panel size so that the "Font Factor" and "LineWidth" can be correspondingly adjusted?

Current Replies - View all
Re: How do you rescale ve...   (Wolfgang - August 11, 2016 at 9:22)
Re: Re: How do you rescal...   (Stephen Salser - August 11, 2016 at 2:06)
Re: Re: Re: How do you re...   (Wolfgang - August 11, 2016 at 2:25)
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book