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

Skip to content

Commit 0b6ef6f

Browse files
committed
Set strip to false explicitly in the scripts (see below)
Some of the simpler scripts looked like they should be left without the clutter... i'm not sure if I did the right thing.
1 parent fe5d2c0 commit 0b6ef6f

File tree

29 files changed

+39
-39
lines changed

29 files changed

+39
-39
lines changed

hard-coded/chart-types/area/matlab-basic-area/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
3, 2, 7;
55
1, 5, 3;
66
2, 6, 1];
7-
figure
7+
fig = figure
88
area(y)
99

10-
response = fig2plotly();
10+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1111
plotly_url = response.url;

hard-coded/chart-types/bar/matlab-basic-bar/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
bar(x,y);
99

1010
% PLOTLY
11-
response = fig2plotly(fig,'strip',1);
11+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1212
plotly_url = response.url;

hard-coded/chart-types/bar/matlab-grouped-bar/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
bar(Y,'group');
1111

1212
% PLOTLY
13-
response = fig2plotly(fig, 'strip', 1);
13+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1414
plotly_url = response.url;

hard-coded/chart-types/bar/matlab-overlaid-bar/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
legend('group1','group2');
2525

2626
% PLOTLY
27-
response = fig2plotly(fig,'strip',1);
27+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
2828
plotly_url = response.url;

hard-coded/chart-types/bar/matlab-stacked-bar/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
legend('Measles', 'Mumps', 'Chicken pox');
1616

1717
% PLOTLY
18-
response = fig2plotly(fig,'strip',1);
18+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1919
plotly_url = response.url;

hard-coded/chart-types/bar/matlab-style-bar/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
set(gca,'box','off');
3131

3232
% PLOTLY
33-
response = fig2plotly();
33+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
3434
plotly_url = response.url;

hard-coded/chart-types/box/matlab-basic-box-plot/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
boxplot([data1,data2])
1010

1111
%--PLOTLY--%
12-
response = fig2plotly(fig, 'filename', '>>>filename<<<');
12+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1313
plotly_url = response.url;

hard-coded/chart-types/error-bar/matlab-symmetric-error-bars/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
y = sin(x);
55
e = std(y)*ones(size(x));
66

7-
figure
7+
fig = figure
88
errorbar(x,y,e)
99

1010
% PLOTLY
11-
response = fig2plotly();
11+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1212
plotly_url = response.url;

hard-coded/chart-types/heatmap/matlab-basic-heatmap/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
z(r,c) = r+c;
88
end
99
end
10-
figure;
10+
fig = figure;
1111

1212
colormap('hot');
1313
imagesc(z);
1414
colorbar;
1515

1616
% PLOTLY
17-
response = fig2plotly();
17+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1818
plotly_url = response.url;

hard-coded/chart-types/histogram/matlab-basic-histogram/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
hist(x)
99

1010
% PLOTLY
11-
response = fig2plotly(fig,'strip',1);
11+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1212
plotly_url = response.url;

hard-coded/chart-types/histogram/matlab-horizontal-histogram/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
barh(bins,h1);
1515

1616
% PLOTLY
17-
response = fig2plotly(fig,'strip',1);
17+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1818
plotly_url = response.url;

hard-coded/chart-types/histogram/matlab-overlaid-histogram/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
end
3535

3636
% PLOTLY
37-
response = fig2plotly(fig,'strip',1);
37+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
3838
plotly_url = response.url;

hard-coded/chart-types/histogram/matlab-stacked-histogram/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
end
3535

3636
% PLOTLY
37-
response = fig2plotly(fig,'strip',1);
37+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
3838
plotly_url = response.url;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
plot(x,y1,x,y2);
99

1010
%--PLOTLY--%
11-
response = fig2plotly(fig, 'filename', '>>>filename<<<');
11+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1212
plotly_url = response.url;

hard-coded/chart-types/line_exclusive/matlab-line-and-scatter-basic/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
ylabel('Amplitude');
2828

2929
%--PLOTLY--%
30-
response = fig2plotly(fig, 'filename', '>>>filename<<<');
30+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
3131
plotly_url = response.url;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
ylabel('|G|[omega]');
2424

2525
% PLOTLY
26-
response = fig2plotly(gcf, 'name', 'log_log_line');
26+
response = fig2plotly(gcf, 'filename', '>>>filename<<<', 'strip', false);
2727
plotly_url = response.url;

hard-coded/chart-types/line_exclusive/matlab-semi-logy/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
% Create a y-axis semilog plot using the semilogy function
99
% Plot SER data in blue and BER data in red
10-
figure;
10+
fig = figure;
1111
semilogy(eb, SER, 'bo-');
1212
hold on;
1313
semilogy(eb, BER, 'r^-');
@@ -21,5 +21,5 @@
2121
ylabel('SER and BER');
2222

2323
% PLOTLY
24-
response = fig2plotly();
24+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
2525
plotly_url = response.url;

hard-coded/chart-types/log/matlab-log-log-line-2/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
ylabel('|G|[omega]');
2424

2525
% PLOTLY
26-
response = fig2plotly(gcf, 'name', 'log_log_line');
26+
response = fig2plotly(gcf, 'filename', '>>>filename<<<', 'strip', false);
2727
plotly_url = response.url;

hard-coded/chart-types/log/matlab-semi-logy-2/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
% Create a y-axis semilog plot using the semilogy function
99
% Plot SER data in blue and BER data in red
10-
figure;
10+
fig = figure;
1111
semilogy(eb, SER, 'bo-');
1212
hold on;
1313
semilogy(eb, BER, 'r^-');
@@ -21,5 +21,5 @@
2121
ylabel('SER and BER');
2222

2323
% PLOTLY
24-
response = fig2plotly();
24+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
2525
plotly_url = response.url;

hard-coded/chart-types/network_graphs/matlab-graph-plot/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
H(k, k) = B(k, k);
88

99
% Visualize the graph using the gplot function (blue)
10-
figure;
10+
fig = figure;
1111
gplot(B - H, V, 'b-');
1212
hold on;
1313

@@ -16,5 +16,5 @@
1616
axis off equal;
1717

1818
% PLOTLY
19-
response = fig2plotly();
19+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
2020
plotly_url = response.url;

hard-coded/layout/legends/matlab-legend-inside/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
legend('blue trace','orange trace');
88

99
% PLOTLY
10-
response = fig2plotly(fig,'strip',1,'name','legend_inside');
10+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1111
plotly_url = response.url;

hard-coded/layout/legends/matlab-legend-outside/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
legend('blue trace','orange trace','Location','BestOutside');
88

99
% PLOTLY
10-
response = fig2plotly(fig,'strip',1,'name','legend_outside');
10+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
1111
plotly_url = response.url;

hard-coded/multiple-axes-insets-subplots/insets/matlab-simple-inset/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
y = sin(t);
77

88
% Place axes at (0.1,0.1) with width and height of 0.8
9-
figure;
9+
fig = figure;
1010
handaxes1 = axes('position', [0.1 0.1 0.8 0.8]);
1111

1212
% Main plot
@@ -37,5 +37,5 @@
3737
xlabel('t'); ylabel('(sin(t))^3');
3838

3939
% PLOTLY
40-
response = fig2plotly();
40+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
4141
plotly_url = response.url;

hard-coded/multiple-axes-insets-subplots/multiple-axes/matlab-two-axes-plot-bar/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
% Create a plot with 2 y axes using the plotyy function
1515
% Cases are represented by a bar chart ; Infection rate is represented by an xy plot
16-
figure;
16+
fig = figure;
1717
[ax, h1, h2] = plotyy(years, cases, years, rate, 'bar', 'plot');
1818

1919
% Change the bar colors to light gray
@@ -31,5 +31,5 @@
3131
set(get(ax(2), 'Ylabel'), 'String', 'Infection rate in cases per thousand');
3232

3333
% PLOTLY
34-
response = fig2plotly();
34+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
3535
plotly_url = response.url;

hard-coded/multiple-axes-insets-subplots/multiple-axes/matlab-two-axes-plot-style/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
grid on
4141

4242
% PLOTLY
43-
response = fig2plotly(fig);
43+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
4444
plotly_url = response.url;
4545

4646

hard-coded/multiple-axes-insets-subplots/multiple-axes/matlab-two-axes-plot/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
y2 = 0.8*exp(-0.5*x).*sin(10*x);
77

88
% Create a plot with 2 y axes using the plotyy function
9-
figure;
9+
fig = figure;
1010
[ax, h1, h2] = plotyy(x, y1, x, y2, 'plot');
1111

1212
% Add title and x axis label
@@ -18,5 +18,5 @@
1818
set(get(ax(2), 'Ylabel'), 'String', 'High Frequency');
1919

2020
% PLOTLY
21-
response = fig2plotly();
21+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
2222
plotly_url = response.url;

hard-coded/multiple-axes-insets-subplots/subplots/matlab-three-subplots/script.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
xn = (1 + cos(2*pi*fm*nT)).*cos(2*pi*fc*nT);
1515

1616
% Create the stem plot for the Sampled Signal spanning positions 1 & 3 of a 2x2 grid
17-
figure;
17+
fig = figure;
1818
subplot(2, 2, [1 3]);
1919
stem(nT,xn);
2020
xlabel('t');
@@ -37,5 +37,5 @@
3737
title('Reconstruction at T=4e-6 ');
3838

3939
% PLOTLY
40-
response = fig2plotly();
40+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
4141
plotly_url = response.url;

hard-coded/specialty/fft/matlab-basic-fft/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
xlabel('FREQUENCY(Hz.)');
4343

4444
% PLOTLY
45-
response = fig2plotly(fig,'strip',1);
45+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
4646
plotly_url = response.url;

hard-coded/specialty/stft/matlab-basic-stft/script.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
title(['C4 GUITAR: MAGNITUDE SPECTROGRAM ANALYSIS']);
5050

5151
% PLOTLY
52-
response = fig2plotly(fig, 'strip', 1);
52+
response = fig2plotly(fig, 'filename', '>>>filename<<<', 'strip', false);
5353
plotly_url = response.url;

0 commit comments

Comments
 (0)