GNOME Bugzilla – Bug 691472
Aspect ratio of charts on graph sheets changes back to 4:3 by itself
Last modified: 2013-01-15 12:25:55 UTC
I created a chart using the "new graph sheet" option which first had what looked like a 4:3 aspect ratio. This changed to something much more suited to the particular chart on clicking "apply". I copied the sheet to create some more similar graphs but when exporting them as images I saw that the aspect ratios of the copies had been changed back to near-square. So I went and modified the aspect ratios in the XML source (actually the height was 300 pts and the width 400, while for the good looking chart it was a weird 211.275591 x 697.889764). On opening the modified file, the last graph sheet was opened automatically and it looked fine but unfortunately now the other, including the original one were broken. Since fixing this will probably take time and I'm not exactly keen on littering my system with the additional library versions the git version probably needs, is there any proper way to change the aspect ratio of graphs on graph sheets? And if not, can they be put back on regular sheets as a workaround?
Ok, just found out that you can just copy and paste graphs onto normal sheets so that's a workaround albeit not a very good one either since, to be frank, changing chart aspect ratio has always been a mild pain.
The graph sheets use the print settings to evaluate the aspect ration for the graph (the default is to use a full page in landscape orientation). If you change the print settings, you should be able to get what you want.
There is something strange going on. If I use the page setup to create square paper and specify no margins, then indeed I get a square plot. But if I add a 1 inch margin on all sides of the square paper,then the plot is not square...?
If it helps I can mail the file that originally made problems to someone.
(In reply to comment #3) > There is something strange going on. If I use the page setup to create square > paper and specify no margins, then indeed I get a square plot. > But if I add a 1 inch margin on all sides of the square paper,then the plot is > not square...? Hmm, I'm seeing that too, the print preview gives a square graph, but it's not the case on screen.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. The top and bottom margins were used twice, my bad. I hope this fixes the original issue as well.
I will try when I get my hands on the release. For the moment I worked my way around the bug. Thanks a lot for the quick fix!