mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
Create _index.md
This commit is contained in:
45
website/content/terminal/economy/plot/_index.md
vendored
Normal file
45
website/content/terminal/economy/plot/_index.md
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
```
|
||||
usage: plot [-y1 YAXIS1 [YAXIS1 ...]] [-y2 YAXIS2 [YAXIS2 ...]] [-s] [-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, use the -st argument available within these commands. For example 'macro -p GDP -c Germany
|
||||
Netherlands -st' will store the data for usage in this command. Therefore, it allows you to plot different time series in one graph.
|
||||
|
||||
```
|
||||
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: )
|
||||
-s, --show Show all available options currently collected from the macro data commands. To save data, use the command -st on 'macro', 'fred', 'index' and 'treasury'. (default: False)
|
||||
-h, --help show this help message (default: False)
|
||||
--export {csv,json,xlsx}
|
||||
Export raw data into csv, json, xlsx (default: )
|
||||
--raw Flag to display raw data (default: False)
|
||||
-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/ $ plot -s
|
||||
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
|
||||
```
|
||||

|
||||
|
||||
Reference in New Issue
Block a user