After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691472 - Aspect ratio of charts on graph sheets changes back to 4:3 by itself
Aspect ratio of charts on graph sheets changes back to 4:3 by itself
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-01-10 13:21 UTC by Christian Leichsenring
Modified: 2013-01-15 12:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Leichsenring 2013-01-10 13:21:50 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?
Comment 1 Christian Leichsenring 2013-01-10 13:31:24 UTC
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.
Comment 2 Jean Bréfort 2013-01-10 16:55:44 UTC
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.
Comment 3 Andreas J. Guelzow 2013-01-10 23:16:08 UTC
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...?
Comment 4 Christian Leichsenring 2013-01-11 09:28:17 UTC
If it helps I can mail the file that originally made problems to someone.
Comment 5 Jean Bréfort 2013-01-11 10:17:53 UTC
(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.
Comment 6 Jean Bréfort 2013-01-14 15:37:31 UTC
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.
Comment 7 Christian Leichsenring 2013-01-15 12:25:55 UTC
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!