You will have to compile yourself from source the macports port of 'qwt' (version 5.2.3). To fix the bug you have to modify 'qwt/src/qwt_plot_print.cpp' applying the patch I posted 2 days ago. Then, you have to compile and link scidavis with the new 'qwt'.
Alternatively, there is a workaround for the bug: Add a new table with data points that when plotted will produce the missing canvas frame. See attached files.
I've just managed to find the bug that prevent drawing of the frame in exported graphics. When exporting with canvas frame enabled, you get something like this.
Of course, this differs from the onscreen representation. I believe the onscreen representation does it incorrectly, but that is handled by a different pience of code. Will look into that shortly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Russel,
Thanks very much for incorporating the patches for this and the curve fit error bug into the new Mac biary for 1.18.
I think that I may be able to help explain the issue bbear2002 has been describling, and offer a work around In all of the versions I have looked at (sarting at 1D8, but not of all them since), when the "Draw backbone" option is turned on, there is a small gap between the ends of the vertical axes and the bottom axis. In 1D8, turning on the Canvas frame option drew a box that closely aligned with the axes backbones, and using this option, without the backbones on, provided the best result when exported to a file.
In subsequent versions, the behavior of the Canvas frame option changed, so that the box encloses all of the graph elements, including axes labels. This is what I would expect a canvas frame to be, but this option no longer solves the problem of a gap between the axes backbones.
It would be nice if the gap between the axes could be fixed, but here is a work arround:
Turn off the axes backbones. This is important to eliminate the small gap. It doesn't really matter if the canvas frame is displayed or not.
Export the graph as an svg file.
Open the file in a program that can edit the svg file as a vector graphics. I use Adobe Illustrator, but Inkscape should work.
The svg image should include a box that includes matches the axes backbones, but is initially unstroked (and filled white), that it has no visible borders. I think that this corresponds to the box that was drawn and stroked in SciDAVis 1D8. Using the drawing program the borders of the box can be stroked, with the color and line width selected by the user. One can also delete one or more of the sides of the boxes, if you wan to show, for instance only the bottom and left axes.
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's no so much as a gap, but rather that the lines do not abut. This is true in both the screen version and the exported version. Ideally, one would be able to move the axis backbones by 1 pixel towards the interior, but qwt_plot doesn't povide any option for doing so.
It seems to me that the only way around this is to draw a 1x1 pixel in each of the four corners.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, this canvas frame issue exists in 1D9 and later versions, whereas 1D8 and earlier versions do not have this problem.
Last edit: bbbear2002 2016-09-12
Any good news, please?
Please, check attached patch.
how can I apply this patch on Mac?
You will have to compile yourself from source the macports port of 'qwt' (version 5.2.3). To fix the bug you have to modify 'qwt/src/qwt_plot_print.cpp' applying the patch I posted 2 days ago. Then, you have to compile and link scidavis with the new 'qwt'.
Alternatively, there is a workaround for the bug: Add a new table with data points that when plotted will produce the missing canvas frame. See attached files.
Not work... I converted to QtiPlot now.
I've just managed to find the bug that prevent drawing of the frame in exported graphics. When exporting with canvas frame enabled, you get something like this.
Of course, this differs from the onscreen representation. I believe the onscreen representation does it incorrectly, but that is handled by a different pience of code. Will look into that shortly.
Russel,
Thanks very much for incorporating the patches for this and the curve fit error bug into the new Mac biary for 1.18.
I think that I may be able to help explain the issue bbear2002 has been describling, and offer a work around In all of the versions I have looked at (sarting at 1D8, but not of all them since), when the "Draw backbone" option is turned on, there is a small gap between the ends of the vertical axes and the bottom axis. In 1D8, turning on the Canvas frame option drew a box that closely aligned with the axes backbones, and using this option, without the backbones on, provided the best result when exported to a file.
In subsequent versions, the behavior of the Canvas frame option changed, so that the box encloses all of the graph elements, including axes labels. This is what I would expect a canvas frame to be, but this option no longer solves the problem of a gap between the axes backbones.
It would be nice if the gap between the axes could be fixed, but here is a work arround:
David
It's no so much as a gap, but rather that the lines do not abut. This is true in both the screen version and the exported version. Ideally, one would be able to move the axis backbones by 1 pixel towards the interior, but qwt_plot doesn't povide any option for doing so.
It seems to me that the only way around this is to draw a 1x1 pixel in each of the four corners.