Skip to content

Commit

Permalink
updated sample plots and usage.rst
Browse files Browse the repository at this point in the history
- updated plots to fix latest trendet updated
- improved image quality via rendering them at `dpi=1000`
- updated usage docs to fix latest trendet release
  • Loading branch information
Álvaro Bartolomé del Canto committed Sep 16, 2019
1 parent 0ae87a2 commit 96b1400
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Binary file modified docs/trendet_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/trendet_example_all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/trendet_example_df.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ to Z by default.
sns.set(style='darkgrid')
df = trendet.identify_trends(equity='bbva',
country='spain',
from_date='01/01/2018',
to_date='01/01/2019',
window_size=5,
Expand Down Expand Up @@ -82,6 +83,7 @@ its usage is as follows:
sns.set(style='darkgrid')
df = identify_all_trends(equity='bbva',
country='spain',
from_date='01/01/2018',
to_date='01/01/2019',
window_size=5)
Expand Down Expand Up @@ -137,14 +139,18 @@ which are that the values can just be `int64` or `float64` and the specified col

.. code-block:: python
import trendet
import investpy
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style='whitegrid')
sns.set(style='darkgrid')
test = investpy.get_historical_data(equity='repsol', country='spain', from_date='01/01/2018', to_date='01/01/2019')
test = investpy.get_historical_data(equity='repsol',
country='spain',
from_date='01/01/2018',
to_date='01/01/2019')
res = identify_df_trends(df=test, column='Close')
Expand Down

0 comments on commit 96b1400

Please sign in to comment.