Plot text orientation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Plot text orientation

Clinton Winant-2
Is it possible to write text in a plot at an arbitrary angle?  The manual seems to say no: "The allowed values are "vertical" (default) or "horizontal"."  But I seem to remember that for some fonts it is possible?

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Plot text orientation

karl
Am 28.03.2017 um 19:23 schrieb Clinton Winant:
Is it possible to write text in a plot at an arbitrary angle?  The manual seems to say no: "The allowed values are "vertical" (default) or "horizontal"."  But I seem to remember that for some fonts it is possible?


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

text(0.3, 0.0001,'P(\beta)','rotation',90,'fontsize',12);

Look it up in the manual. RTFM.


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Plot text orientation

Przemek Klosowski-7
On 03/28/2017 02:36 PM, [hidden email] wrote:
Am 28.03.2017 um 19:23 schrieb Clinton Winant:
Is it possible to write text in a plot at an arbitrary angle?  The manual seems to say no: "The allowed values are "vertical" (default) or "horizontal"."  But I seem to remember that for some fonts it is possible?

text(0.3, 0.0001,'P(\beta)','rotation',90,'fontsize',12);

Look it up in the manual. RTFM.

Well, on the default fltk terminal, rotation of anything up to 89 degrees results in horizontal text, while 90 results in vertical text, which is what Clinton's trying to avoid.  Switching to graphics_toolkit("gnuplot") on my system actually allows arbitrary angles.

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Plot text orientation

karl
Am 28.03.2017 um 20:56 schrieb Przemek Klosowski:
On 03/28/2017 02:36 PM, [hidden email] wrote:
Am 28.03.2017 um 19:23 schrieb Clinton Winant:
Is it possible to write text in a plot at an arbitrary angle?  The manual seems to say no: "The allowed values are "vertical" (default) or "horizontal"."  But I seem to remember that for some fonts it is possible?

text(0.3, 0.0001,'P(\beta)','rotation',90,'fontsize',12);

Look it up in the manual. RTFM.

Well, on the default fltk terminal, rotation of anything up to 89 degrees results in horizontal text, while 90 results in vertical text, which is what Clinton's trying to avoid.  Switching to graphics_toolkit("gnuplot") on my system actually allows arbitrary angles.


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

I checked the command above; with pnuplot it works for different angles, for example

text(0.3, 0.0001,'P(\beta)','rotation',60,'fontsize',12);

gives the expected result.


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Loading...