[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55038] ytick property doesn't return all tick
From: |
Fabio |
Subject: |
[Octave-bug-tracker] [bug #55038] ytick property doesn't return all ticks |
Date: |
Fri, 16 Nov 2018 10:21:47 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 |
URL:
<https://savannah.gnu.org/bugs/?55038>
Summary: ytick property doesn't return all ticks
Project: GNU Octave
Submitted by: efferre79
Submitted on: Fri 16 Nov 2018 03:21:46 PM UTC
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.1
Operating System: GNU/Linux
_______________________________________________________
Details:
I am not sure this bug is related to octave or to gnuplot.
I have large numbers on an axis whose labels are represented with an
exponential notation and I am using gnuplot as backend. After plotting I want
to change the labels of the ticks with the following command:
set(gca,'yticklabel',sprintf('%.1f|', get(gca,'ytick')))
Most of the time the trick works but for the dataset here attached the ticks
showed in the plot is larger than the set returned by get(gca,'ytick'). This
means that the previous command overwrites only a few of the ticklabels (see
attached figure).
I found a workaround i.e. to put an explicit statement
set(gca,'ytick', get(gca,'ytick'))
before the previous one to clean the ticks. Looking at differences in the
gnuplot generated code it seems a gnuplot command
set ytics add in scale ...
is added after setting the xticklabels. Is the "add" keyword really needed?
shouldn't set(gca, 'yticklabel', ...) overwrite all the labels?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55038>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55038] ytick property doesn't return all ticks,
Fabio <=