We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 274e18d + 0532840 commit 620f32dCopy full SHA for 620f32d
plotly/plotlyfig_aux/helpers/extractAxisData.m
@@ -122,7 +122,12 @@
122
end
123
124
if isnumeric(axisLim)
125
- axis.range = axisLim;
+ if strcmp(axis.type, 'linear')
126
+ axis.range = axisLim;
127
+ elseif strcmp(axis.type, 'log')
128
+ axis.range = log10(axisLim);
129
+ end
130
+
131
else
132
axis.autorange = true;
133
@@ -133,7 +138,6 @@
138
134
139
%-set tick labels by using tick values and tick texts-%
135
140
if ~isempty(tickValues) && ~isempty(tickLabels)
136
-
137
141
axis.tickmode = 'array';
142
axis.tickvals = tickValues;
143
axis.ticktext = tickLabels;
@@ -142,7 +146,6 @@
146
147
%-set tick labels by using only tick values-%
144
148
elseif ~isempty(tickValues) && isempty(tickLabels)
145
149
150
151
0 commit comments