Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8903b4d

Browse files
committed
improved color and style of line/marker
1 parent c133f0b commit 8903b4d

File tree

1 file changed

+7
-2
lines changed
  • hard-coded/chart-types/line_exclusive/matlab-line-style

1 file changed

+7
-2
lines changed

hard-coded/chart-types/line_exclusive/matlab-line-style/script.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
y2 = sin(x-0.25);
66
y3 = sin(x-0.5);
77

8-
fig = figure
9-
plot(x,y1,'g',x,y2,'b--o',x,y3,'c*')
8+
fig = figure;
9+
hold on
10+
11+
plot(x,y1,'Color',[150 244 100]/255,'LineWidth',3,'LineStyle','-.');
12+
plot(x,y2,'Color',[201 24 100]/255,'LineWidth',3,'LineStyle','--');
13+
plot(x,y3,'Color',[21 24 250]/255,'LineWidth',2,'LineStyle','o');
14+
1015

1116
%--PLOTLY--%
1217
response = fig2plotly(fig, 'strip', false); % <----- preserve MATLAB style!

0 commit comments

Comments
 (0)