I try to plot a canvas with hundreds of histograms and save it as .png file. The width of the canvas is set to 1270 and the height depends on the histogram number. I have spotted that the final .png plot cannot have the height > 32000. If it would be bigger, some of the histograms will be missing in the plot. 32000 seems to be maximum canvas height in pixels.
My questions are: what is the origin of this maximum value and is it possible to create a plot with height more than 32000 pixels? Thank you.
Hi,
I cannot answer your question (maybe @bellenot or @couet can) but reading your post I cannot help but wonder whether it wouldn’t be more practical for you to save several different png images and only merge them together in a second step (with an external tool like gimp or imagemagick) if you really need it.
$ root -b
-----------------------------------------------------------------
| Welcome to ROOT 6.11/01 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for macosx64 |
| From heads/master@v6-09-02-1537-ge08851a, Jun 30 2017, 14:41:02 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
-----------------------------------------------------------------
root [0] TCanvas *c = new TCanvas("c","c",1270,32000)
(TCanvas *) 0x7f9c7496b4f0
root [1] hpx->Draw()
root [2] c->Print("bigcanvas.png");
Info in <TCanvas::Print>: png file bigcanvas.png has been created