|
| 1 | +API CHANGES in matplotlib-0.63 |
| 2 | + |
| 3 | + Dates are now represented internally as float days since 0001-01-01, |
| 4 | + UTC. |
| 5 | + |
| 6 | + All date tickers and formatters are now in matplotlib.dates, rather |
| 7 | + than matplotlib.tickers |
| 8 | + |
| 9 | + converters have been abolished from all functions and classes. |
| 10 | + num2date and date2num are now the converter functions for all date |
| 11 | + plots |
| 12 | + |
| 13 | + Most of the date tick locators have a different meaning in their |
| 14 | + constructors. In the prior implementation, the first argument was a |
| 15 | + base and multiples of the base were ticked. Eg |
| 16 | + |
| 17 | + HourLocator(5) # old: tick every 5 minutes |
| 18 | + |
| 19 | + In the new implementation, the explicit points you want to tick are |
| 20 | + provided as a number or sequence |
| 21 | + |
| 22 | + HourLocator(range(0,5,61)) # new: tick every 5 minutes |
| 23 | + |
| 24 | + This gives much greater flexibility. I have tried to make the |
| 25 | + default constructors (no args) behave similarly, where possible. |
| 26 | + |
| 27 | + Note that YearLocator still works under the base/multiple scheme. |
| 28 | + The difference between the YearLocator and the other locators is |
| 29 | + that years are not recurrent. |
| 30 | + |
| 31 | + |
| 32 | + Financial functions: |
| 33 | + |
| 34 | + matplotlib.finance.quotes_historical_yahoo(ticker, date1, date2) |
| 35 | + |
| 36 | + date1, date2 are now datetime instances. Return value is a list |
| 37 | + of quotes where the quote time is a float - days since gregorian |
| 38 | + start, as returned by date2num |
| 39 | + |
| 40 | + See examples/finance_demo.py for example usage of new API |
| 41 | + |
| 42 | + |
1 | 43 | API CHANGES in matplotlib-0.61 |
2 | 44 |
|
3 | 45 | canvas.connect is now deprecated for event handling. use |
|
0 commit comments