Filter löschen
Filter löschen

How can write a script to plot my data with two y-axes

1 Ansicht (letzte 30 Tage)
Hemz
Hemz am 10 Jul. 2020
Beantwortet: Jemima Pulipati am 22 Jul. 2020
I have a timeseries data with electrcity access ( in percentage and population) and finance per year. How can I write two scripts: one to plot the data in worksheets ending with _per and _pop with two y-axes with legends of the country names and different colors and the other script to plot the data in the worksheet ending with _fin again with the country name as legend.

Antworten (1)

Jemima Pulipati
Jemima Pulipati am 22 Jul. 2020
yyaxis is used to create a chart with two y-axes.
You can refer to this example for plotting data using yyaxis.

Kategorien

Mehr zu Graphics finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by