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 b47c6a0 commit 874a91fCopy full SHA for 874a91f
plotly/plotlyfig_aux/core/updateData.m
@@ -95,11 +95,20 @@
95
obj.data{dataIndex}.x = convertDate(obj.data{dataIndex}.x);
96
end
97
98
+% check for xaxis categories
99
+if strcmpi(xaxis.type, 'category')
100
+ obj.data{dataIndex}.x = get(obj.State.Plot(dataIndex).AssociatedAxis,'XTickLabel');
101
+end
102
+
103
% check for yaxis dates
104
if strcmpi(yaxis.type, 'date')
105
obj.data{dataIndex}.y = convertDate(obj.data{dataIndex}.y);
106
107
108
+% check for yaxis categories
109
+if strcmpi(yaxis.type, 'category')
110
+ obj.data{dataIndex}.y = get(obj.State.Plot(dataIndex).AssociatedAxis,'YTickLabel');
111
112
%-------------------------------------------------------------------------%
113
114
0 commit comments