help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text rotate patch


From: Bailey, Jeffrey C. (MSFC-NNM05AB50C)[RAYTHEON]
Subject: Re: text rotate patch
Date: Wed, 26 Aug 2009 18:10:47 -0500
User-agent: Thunderbird 2.0.0.18 (X11/20081120)

Ben,

I just tried your example again and it worked, but I was not running some of my other code. Perhaps the other code messed it up somehow?

Jeff

Bailey, Jeffrey C. (MSFC-NNM05AB50C)[RAYTHEON] wrote:
I saw on the web a 'patch' for text rotation. It has stuff listed below. Being new to the system, I wasn't sure what I needed to do with it. Is it script that I download and run, do I just edit the appropriate matlab like m file, or perhaps get the real patch somewhere else.

Thanks,
Jeff


|
|
|
|       * graphics.h (text::text_properties::rotation): New data member.
|  >         * graphics.cc (text::text_properties::text_properties,
|  >         text::text_properties::set, text::text_properties::get,
|  >         text::text_properties::factory_defaults): Handle rotation property.
|  >
|  >
|  > Index: scripts/plot/__go_draw_axes__.m
|  > ===================================================================
|  > RCS file: /cvs/octave/scripts/plot/__go_draw_axes__.m,v
|  > retrieving revision 1.19
|  > diff -u -u -r1.19 __go_draw_axes__.m
|  > --- scripts/plot/__go_draw_axes__.m     9 May 2007 16:46:50 -0000       
1.19
|  > +++ scripts/plot/__go_draw_axes__.m     14 Jun 2007 16:23:59 -0000
|  > @@ -525,14 +525,17 @@
|  >           lpos = obj.position;
|  >           label = obj.string;
|  >           halign = obj.horizontalalignment;
|  > +         angle = obj.rotation;
|  >           if (nd == 3)
|  > -           fprintf (plot_stream, "set label \"%s\" at %g,%g,%g %s;\n",
|  > +           fprintf (plot_stream,
|  > +                    "set label \"%s\" at %g,%g,%g %s rotate by %f;\n",
|  >                      undo_string_escapes (label),
|  > -                    lpos(1), lpos(2), lpos(3), halign);
|  > +                    lpos(1), lpos(2), lpos(3), halign, angle);
|  >           else
|  > -           fprintf (plot_stream, "set label \"%s\" at %g,%g %s;\n",
|  > +           fprintf (plot_stream,
|  > +                    "set label \"%s\" at %g,%g %s rotate by %f;\n",
|  >                      undo_string_escapes (label),
|  > -                    lpos(1), lpos(2), halign);
|  > +                    lpos(1), lpos(2), halign, angle);
|  >           endif
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]