mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-25 02:33:10 +00:00
* fix(docs): added margin between sections * fix: images * readd old content for examples/images * fix: codespell * fix: codespell * fix: ga * fix: remove temp lorem ipsum * fix: docu config for edit page Co-authored-by: teh_coderer <me@tehcoderer.com>
2.8 KiB
Vendored
2.8 KiB
Vendored
usage: plot [-y1 YAXIS1 [YAXIS1 ...]] [-y2 YAXIS2 [YAXIS2 ...]] [-h] [--export {csv,json,xlsx}] [--raw] [-l LIMIT]
This command can plot any data on two y-axes obtained from the macro, fred, index and treasury commands. To be able to use this data, just load the available series from the previous commands. For example 'macro -p GDP -c Germany Netherlands' will store the data for usage in this command. Therefore, it allows you to plot different time series in one graph. The example above could be plotted the following way: 'plot --y1 Germany_GDP --y2 Netherlands_GDP' or 'plot --y1 Germany_GDP Netherlands_GDP'
optional arguments:
-y1 YAXIS1 [YAXIS1 ...], --yaxis1 YAXIS1 [YAXIS1 ...]
Select the data you wish to plot on the first y-axis. You can select multiple variables here. (default: )
-y2 YAXIS2 [YAXIS2 ...], --yaxis2 YAXIS2 [YAXIS2 ...]
Select the data you wish to plot on the second y-axis. You can select multiple variables here. (default: )
-h, --help show this help message (default: False)
--export {csv,json,xlsx}
Export raw data into csv, json, xlsx (default: )
-l LIMIT, --limit LIMIT
Number of entries to show in data. (default: 10)
Comparing Unemployment Rates and Consumer Confidence of France and Italy
2022 Mar 15, 07:43 (🦋) /economy/ $ macro -p URATE CONF -c france,italy -s 2005-01-01 -st
2022 Mar 15, 07:45 (🦋) /economy/ $ options
Options available to plot
┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Command ┃ Options ┃
┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ macro │ France_URATE, France_CONF, Italy_URATE, Italy_CONF │
└─────────┴────────────────────────────────────────────────────┘
2022 Mar 15, 07:43 (🦋) /economy/ $ plot -y1 France_URATE,Italy_URATE -y2 France_CONF,Italy_CONF
Comparing U.S. treasury rate movements to the S&P 500
2022 Mar 15, 07:39 (🦋) /economy/ $ treasury -m 1y 10y -s 2005-01-01 -st
2022 Mar 15, 07:40 (🦋) /economy/ $ index sp500 -s 2005-01-01 -st
2022 Mar 15, 07:40 (🦋) /economy/ $ plot -y1 sp500 -y2 Nominal_1-year,Nominal_10-year

