Skip to content

Commit ff4de2e

Browse files
DanielGoldfarbDaniel Goldfarb
authored andcommitted
adjust default figratio and regenerate README
1 parent 5cc90cc commit ff4de2e

18 files changed

+75
-57
lines changed

examples/customization_and_styles.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

readme.ipynb

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

readme_new.ipynb

Lines changed: 35 additions & 29 deletions
Large diffs are not rendered by default.

readme_new.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Start with a Pandas DataFrame containing OHLC data. For example,
5555

5656

5757
```python
58-
import pandas as pd
5958
daily = pd.read_csv('examples/data/SP500_NOV2019_Hist.csv',index_col=0,parse_dates=True)
6059
daily.index.name = 'Date'
6160
daily.shape
@@ -124,6 +123,7 @@ daily.tail(3)
124123

125124

126125

126+
127127
<table border="1" class="dataframe">
128128
<thead>
129129
<tr style="text-align: right;">
@@ -172,6 +172,7 @@ daily.tail(3)
172172
</table>
173173

174174

175+
175176
---
176177
<br>
177178

@@ -332,6 +333,8 @@ intraday.tail(3)
332333

333334

334335

336+
337+
335338
<table border="1" class="dataframe">
336339
<thead>
337340
<tr style="text-align: right;">
@@ -377,6 +380,7 @@ intraday.tail(3)
377380

378381

379382

383+
380384
The above dataframe contains Open,High,Low,Close data at 1 minute intervervals for the S&P 500 stock index for November 5, 6, 7 and 8, 2019. Let's look at the last hour of trading on November 6th, with a 7 minute and 12 minute moving average.
381385

382386

@@ -418,7 +422,7 @@ Below: 4 days of intraday data with `show_nontrading=True`
418422

419423

420424
```python
421-
mpf.plot(intraday,type='ohlc',show_nontrading=True) # 4 day of intraday with show_nontrading=True
425+
mpf.plot(intraday,type='ohlc',show_nontrading=True)
422426
```
423427

424428

@@ -513,6 +517,8 @@ df.tail(3)
513517

514518

515519

520+
521+
516522
<table border="1" class="dataframe">
517523
<thead>
518524
<tr style="text-align: right;">
@@ -567,6 +573,7 @@ df.tail(3)
567573

568574

569575

576+
570577
```python
571578
mpf.plot(df[700:850],type='bars',volume=True,mav=(20,40))
572579
```
@@ -583,7 +590,7 @@ For more examples of using mplfinance, please see the jupyter notebooks in the *
583590

584591
| Version | Description | Release Date |
585592
|:---------|:-------------|:---------------|
586-
| 0.12.3a0 | - kwarg `block=False` for non-blocking call to `mpf.plot()`<br> - customize aspect ratio, title, y-labels<br> - customize colors and other `style` aspects of plot<br> - `no_xgaps` now default to True: use `show_nontrading=True` to set no_xgaps to false<br> - secondary y-axis available to `make_addplot()`<br> - bug fix for volume widths | 2020-02-11 |
593+
| 0.12.3a0 | - kwarg `block=False` for non-blocking call to `mpf.plot()`<br> - customize aspect ratio, figure title, y-labels<br> - customize colors and other `style` aspects of plot<br> - `no_xgaps` now defaults to True: use `show_nontrading=True` to set no_xgaps to false<br> - secondary y-axis available to `make_addplot()`<br> - bug fix for volume widths | 2020-02-11 |
587594
| 0.12.0a3 | Increase mav limit from 3 to 7 different mavs | 2020-01-16 |
588595
| 0.12.0a2 | Ability to save plot to a file (pdf, svg, png, jpg, ...) | 2020-01-14 |
589596
| 0.12.0a1 | Ability to plot arbitrary user data (in addition to basic OHLCV data).<br> - both line and scatter plots available.<br> - optionally plot on either the "main" or "lower" (aka "volume") axis. | 2020-01-09 |
@@ -623,3 +630,8 @@ where `<method>` indicates the method you want to import, for example:
623630
```
624631

625632
---
633+
634+
635+
```python
636+
637+
```

readme_new_files/readme_new_10_0.png

1.68 KB
Loading

readme_new_files/readme_new_12_0.png

1.35 KB
Loading

readme_new_files/readme_new_14_0.png

1.81 KB
Loading

readme_new_files/readme_new_18_0.png

2.01 KB
Loading

readme_new_files/readme_new_20_0.png

1.03 KB
Loading

readme_new_files/readme_new_22_0.png

785 Bytes
Loading

0 commit comments

Comments
 (0)