matplotlib / matplotlib/mplfinance

compatibility with mpld3

Open
#132 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

hi thank you for this awesome library.
I've been trying to display a candlestick chart, which works well on ipython notebook, but with mpld3, all that displays is this:
![Screen Shot 2020-05-12 at 6 55 15 pm](https://user-images.githubusercontent.com/20595849/81676223-3390ac00-9482-11ea-9298-24a22df49d84.png)

instead of this:
![Screen Shot 2020-05-12 at 6 54 48 pm](https://user-images.githubusercontent.com/20595849/81676050-11972980-9482-11ea-87ae-6a794fb3f851.png)

`df = retrieve_data()
candles = pd.DataFrame( {'Date': pd.to_datetime(df['time']), 'Open': df.Open, 'High': df.High, 'Low': df.Low, 'Close': df.Close, 'Volume': df.Volume})
candles = candles[['Date', 'Open', 'High', 'Low', 'Close', 'Volume']]
candles = candles.set_index(pd.DatetimeIndex(candles["Date"]))

fig, ax = mpf.plot(candles, type='candle', returnfig=True, style='nightclouds')
mpld3.show()`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Python example with the mplfinance candlestick plot and mpld3.show(), comparing its output in an IPython notebook with the mpld3 rendering. The issue names no project files or tests; done means the candlestick chart renders correctly through mpld3 rather than showing the reported incomplete output.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.