Skip to content

[BUG] Y-axis labels : values above 999 do not appear #554

@PythonMacaron

Description

@PythonMacaron

Requirements (place an x in each of the [ ])**

  • I realize finplot is not a web lib. (Hint: it's native!)
  • I've read the snippets and not found what I'm looking for.
  • I've searched for any related issues and avoided creating a duplicate issue.
  • I've updated finplot (pip install -U finplot).
  • I've supplied the required data to run my code below.

Code to reproduce

import finplot as fplt
import pandas as pd
import yfinance as yf

symbol = 'RMS.PA'
interval = '1d'
df = yf.download(symbol, start='2020-01-01', interval=interval)
ax = fplt.create_plot('Hermès', rows=1)
fplt.candlestick_ochl(df[['Open','Close','High','Low']], ax=ax)

Describe the bug

I started noticing with Japanese stocks (like this yahoo finance ticker : 8035.T) that prices do not appear on the y-axis. Then I realized with the French stock Hermès that prices appear under 1000 but not from 1000 and above on the plot of this stock with prices going from the hundreds into the thousands over the years.

Expected behavior

Prices with 4 digits or more should appear on the y-axis.

Screenshots

Image

Reproducible in:

Debian Linux 12:
finplot version : 0.2.55:
*pyqtgraph version : 0.13.7 *:
pyqt version : 6.8.1:

Anyway, thanks for your cool library !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions