set height of HPlotContainer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

set height of HPlotContainer

Michael Graber

hi,

i use nested PlotContainers, i.e. i put several plot or plotcontainers
into a VPlotContainer. whereas i am able to set the height of a plot i
put into the VPlotContainer i do not seem to be able to set the height
of a HPlotContainer. why? or is there a way?

thanks as always for your help,
michael
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: set height of HPlotContainer

Peter Wang
On Thu, Nov 18, 2010 at 11:56 AM, Michael Graber
<[hidden email]> wrote:
> i use nested PlotContainers, i.e. i put several plot or plotcontainers
> into a VPlotContainer. whereas i am able to set the height of a plot i
> put into the VPlotContainer i do not seem to be able to set the height
> of a HPlotContainer. why? or is there a way?

You should be able to set the height and width of any kind of
containers.  Perhaps your HPlotContainer is set to be vertically
resizable?  If you want it to have a fixed vertical size, make sure to
set its .resizable attribute to "h" or "" (empty string), in addition
to setting its .height attribute.

-Peter
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: set height of HPlotContainer

Michael Graber

thanks peter. indeed the resizable attribute had to be set.
michael


On Nov 18, 2010, at 7:33 PM, Peter Wang wrote:

> On Thu, Nov 18, 2010 at 11:56 AM, Michael Graber
> <[hidden email]> wrote:
>> i use nested PlotContainers, i.e. i put several plot or  
>> plotcontainers
>> into a VPlotContainer. whereas i am able to set the height of a  
>> plot i
>> put into the VPlotContainer i do not seem to be able to set the  
>> height
>> of a HPlotContainer. why? or is there a way?
>
> You should be able to set the height and width of any kind of
> containers.  Perhaps your HPlotContainer is set to be vertically
> resizable?  If you want it to have a fixed vertical size, make sure to
> set its .resizable attribute to "h" or "" (empty string), in addition
> to setting its .height attribute.
>
> -Peter
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev