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 600482 - feature request- Explicit axis ticks in xy-plot
feature request- Explicit axis ticks in xy-plot
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Graphing / Charting
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Jean Bréfort
Jody Goldberg
: 670624 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-02 22:02 UTC by moeshroom
Modified: 2015-01-12 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
i hope this helps-- i drew the axis ticks on my chart in red. (38.72 KB, image/png)
2009-11-02 22:02 UTC, moeshroom
Details
.gnumeric file to illustrate the issues when using a serie for manual ticks (926.62 KB, application/x-gnumeric)
2014-11-26 15:18 UTC, Frédéric Parrenin
Details

Description moeshroom 2009-11-02 22:02:58 UTC
Created attachment 146780 [details]
i hope this helps-- i drew the axis ticks on my chart in red.

I need the ability to declare explicitly the ticks on my x-axis for a
continuous xy-plot.  Please see the attached .png image. 

I am using Gnumeric 1.9.9 in Ubuntu 9.10 x86_64.

Cheers and thanks for the great free software!
Comment 1 Jean Bréfort 2009-11-03 06:18:45 UTC
Your sample use a geometric progression for the tick values, which make sense. Using random values is a bit disputable, IMHO. 
Anyway, this is not very easy to implement, especially, we must ensure that things are readable. In the sample, the "64" is not clearly separated from its neighbours and should probably be hidden.

For now what you can do is:
- hide the ticks and labels for the axis,
- add drop lines (or mimic the ticks with another series),
- add labels manually.
Comment 2 Jean Bréfort 2012-02-22 18:29:50 UTC
*** Bug 670624 has been marked as a duplicate of this bug. ***
Comment 3 Frédéric Parrenin 2014-11-26 14:31:15 UTC
A concrete example of this feature request.
I study ice cores drilled in polar ice sheet.
Sometimes, I plot a proxy recorded in this ice core as a function of the depth in the ice core. But I also want a second axis to show the age of the ice in the ice core (which is not linearly related to the depth).
Comment 4 Jean Bréfort 2014-11-26 14:42:09 UTC
That might be done with a new series with custom labels, I don't think you need an axis for that. Use depth as x, some arbitrary constant value for y and the age as data labels. That would be really not easy to implement as an axis scale.
Comment 5 Frédéric Parrenin 2014-11-26 15:18:07 UTC
Created attachment 291561 [details]
.gnumeric file to illustrate the issues when using a serie for manual ticks
Comment 6 Frédéric Parrenin 2014-11-26 15:18:50 UTC
I agree using a serie is a workaround, but this is clearly suboptimal for several reasons:
- the labels of the serie might be hidden by the legend (see attached example). The layout of the whole chart does not take into account this new axis.
- the style of the ticks is different from the other axis (see attached example). You can use a diamond symbol but that does not quite look the same with respect to other axis.
- you cannot draw a grid. Right now, when I want to draw n different vertical lines, I add n different y-axes (see attached example). Then your chart hierarchy is difficult to follow and you cannot easily change the style of all the vertical lines at the same time.
Comment 7 Jean Bréfort 2014-11-26 16:23:51 UTC
OK, I see, but clearly not easy.
Comment 8 Frédéric Parrenin 2014-11-26 17:13:07 UTC
Another issue is that you cannot easily add an axis title.
You can add a separate axis without any tick/label and add a title to this axis but it does not respect the hierarchy in your chart.

For the UI, a possibility would be to have a "manual ticks" object which would be the child of the axis.
Comment 9 Jean Bréfort 2014-11-26 17:53:56 UTC
It would be better with an axis line than with an axis, imho, except that we can't currently add a title to axis lines.
Comment 10 Jean Bréfort 2015-01-08 14:56:17 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.

Some words on how things work:
* Only axis lines can have custom ticks.
* There are two vectors: positions and labels. If only the positions are given, all ticks are major ticks and the labels are built from the given position values and format, if labels are given, the labels are used , and ticks without labels are minor ticks.
* adding grid lines to an axis line have an effect only if custom ticks are defined.
* the format page only applies to custom ticks labels.
* if no custom tick is defined, the axis line will use the same ticks than its parent axis.
* Axis lines can't currently have titles (this is probably something that should be implemented, but it is not so easy). For now, you can add an invisible axis at the same position and add a title to this axis.
Comment 11 Frédéric Parrenin 2015-01-08 15:17:04 UTC
Dear Jean, thank you very much for your work on this.
I will test this new feature as soon as I can.
Comment 12 Frédéric Parrenin 2015-01-12 10:03:26 UTC
I tested this feature and it works great.
Thanks again.