Closed
Description
When plotting multiple plots on a single figure, the series doesn't share the same color (using MATLAB they do)
Code:
x = linspace(0,2*pi);
y1 = 5*sin(x);
y2 = sin(5*x);
tiledlayout(2,1)
% Top plot
ax1 = nexttile;
stairs(ax1,x,y1)
% Bottom plot
ax2 = nexttile;
stairs(ax2,x,y2)
fig2plotly();
Expected and obtained (https://chart-studio.plotly.com/~xarico10/192/#/) plots:
And, since the Name-Value argument Color doesn't work (#155 (comment)), there's no possible way of forcing same line color on both plots.
(Specifying same Color doesn't solve the problem):
x = linspace(0,2*pi);
y1 = 5*sin(x);
y2 = sin(5*x);
tiledlayout(2,1)
% Top plot
ax1 = nexttile;
stairs(ax1,x,y1,'Color','red')
% Bottom plot
ax2 = nexttile;
stairs(ax2,x,y2,'Color','red')
fig2plotly();
Expected and obtained (https://chart-studio.plotly.com/~xarico10/194/#/) plots:
Metadata
Metadata
Assignees
Labels
No labels