Brett Ables
2013-03-07 19:52:05 UTC
It seems there is no way to control the aspect ratio of a CurveWidget - is
that true?
I'd like to be able to set a fixed aspect ratio of 1. I'm plotting the
shapes of physical objects, so having them displayed in the correct scale
is vital.
I see that ImageWidget has a bunch of functions related to aspect ratio
like set_aspect_ratio, get_aspect_ratio, etc, but I can't find anything
equivalent for curves.
Would it be possible to make a workaround by getting the current axes
bounds and resetting them to be an aspect of 1.0? I've tried doing
it programmatically, but I think the problem is that if I try to set the
aspect before the plot as rendered, the current x and y bounds are still 0
or something.
Any thoughts?
- Brett
that true?
I'd like to be able to set a fixed aspect ratio of 1. I'm plotting the
shapes of physical objects, so having them displayed in the correct scale
is vital.
I see that ImageWidget has a bunch of functions related to aspect ratio
like set_aspect_ratio, get_aspect_ratio, etc, but I can't find anything
equivalent for curves.
Would it be possible to make a workaround by getting the current axes
bounds and resetting them to be an aspect of 1.0? I've tried doing
it programmatically, but I think the problem is that if I try to set the
aspect before the plot as rendered, the current x and y bounds are still 0
or something.
Any thoughts?
- Brett
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.