[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55485] Printing rotated text only works for 9
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression) |
Date: |
Wed, 16 Jan 2019 21:51:00 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #6, bug #55485 (project octave):
I agree. FLTK doesn't need to be fully supported so just issuing a warning
and using -painters instead would be fine.
If you want to detect rotated text, this code should work
ht = findall (gca, "type", "text");
angles = [get(ht, "rotation"){:}];
if (any (mod (angles, 90)))
disp ("non-90 degree rotation");
endif
I put this code in a script find_90.m and then did
demo text 1
tic; find_90; toc
It takes about 35 milliseconds on my computer and this is with 112 text
objects. On an ordinary plot it is 10X faster.
plot (1:10, 'o-')
tic; find_90; toc
Elapsed time is 0.00353289 seconds.
So, I think you could put this in as a placeholder.
Eventually, and I think there is already a bug report on this, we would like
to support rotated text onscreen and then WYSIWYG will be appropriate.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55485>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Rik, 2019/01/15
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Pantxo Diribarne, 2019/01/16
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Rik, 2019/01/16
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Rik, 2019/01/16
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Pantxo Diribarne, 2019/01/16
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Pantxo Diribarne, 2019/01/16
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression),
Rik <=
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Pantxo Diribarne, 2019/01/17
- [Octave-bug-tracker] [bug #55485] Printing rotated text only works for 90 degree increments with qt toolkit (regression), Rik, 2019/01/17