We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0fe47 commit 041f83fCopy full SHA for 041f83f
plotly/plotlyfig_aux/helpers/extractAxisData.m
@@ -204,8 +204,12 @@
204
axis.autorange = true;
205
else
206
%-axis labels
207
- labels = str2double(axis_data.YTickLabel);
+ labels = str2double(Tick);
208
try
209
+ dataLim = eval(['axis_data.' axisName 'Lim']);
210
+ if isnumeric (dataLim)
211
+ axis.range = dataLim;
212
+ else
213
%find numbers in labels
214
labelnums = find(~isnan(labels));
215
%-axis type linear-%
@@ -214,6 +218,7 @@
218
delta = (labels(labelnums(2)) - labels(labelnums(1)))/(labelnums(2)-labelnums(1));
219
axis.range = [labels(labelnums(1))-delta*(labelnums(1)-1) labels(labelnums(1)) + (length(labels)-labelnums(1))*delta];
216
220
%-axis autotick-%
221
+ end
217
222
axis.autotick = true;
223
%-axis numticks-%
224
axis.nticks = eval(['length(axis_data.' axisName 'Tick) + 1;']);
0 commit comments