From d5fea179dbd9bc388d4b7d284672b43920ea54ed Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:47:28 +0100 Subject: [PATCH] Create _index.md --- .../content/terminal/economy/plot/_index.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 website/content/terminal/economy/plot/_index.md diff --git a/website/content/terminal/economy/plot/_index.md b/website/content/terminal/economy/plot/_index.md new file mode 100644 index 00000000000..93ce50b7490 --- /dev/null +++ b/website/content/terminal/economy/plot/_index.md @@ -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 +``` +![unemployment versus confidence](https://user-images.githubusercontent.com/46355364/158371180-54fd0bfe-6231-4d4a-bb6a-0c895fa32c4d.png) + +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 +``` +![treasuries vs sp500](https://user-images.githubusercontent.com/46355364/158370452-57e08a71-9568-4662-87fb-a55be50aecf8.png) +