You can do that now if in the canvas menu you turn off the option: Options/Auto Resize Canvas. In that case the canvas stays fixed when changing the window size. The API to this feature is not yet easily accessable but I can expose it. Cheers, Fons Thomas Bretz wrote: > > Dear rooters, > > I have a question and maybe a suggestion: > Is it possible to fix the aspect ratio of a graphic in a TPad or to fix > the aspect ratio of a canvas. So that if I change only the width the > graphic stays the same, but if I change the width and height, the > graphic is resized. If this is not yet implemented it would be a really > nice feature. (Easier to implement is fixing the aspect ratio of a > canvas, Iguess) This would help when displaing detector geometries. > > Regards, > Thomas. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET