Currently the histogram or graph axes are always drawn of equal length.
There are cases when one would need to have the histogram axes of different, user set lengths when drawn.
I would like to suggest such a feature for future versions of Root.
I am not sure to understand what is your request.
The “length” on the axis depends on the canvas setting … and can be different along X and Y …
May be I do not understand what you mean by “length”…
Thanks, Modifying TCanvas dimensions does the job.
This is a follow-up op
When you have a TH2, TGraph or TGraph2D where your x and y axes are in the same units (e.g. both MeV, or both mm, or both in ns), you normally want to get a real aspect ratio in your monitor or canvas. In other words, you want that the unit length of each axis occupies the same number of pixels, so that the representation on your monitor is proportional to reality and not distorte…
for matching the exact ratio of the axes, rather than from the canvas.