Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Side Symbols in Legend (like ⅃) for Single Data Set #142

Closed
ineteye opened this issue Oct 10, 2022 · 5 comments
Closed

Remove Side Symbols in Legend (like ⅃) for Single Data Set #142

ineteye opened this issue Oct 10, 2022 · 5 comments

Comments

@ineteye
Copy link

ineteye commented Oct 10, 2022

Hi!

Have this symbol on plot before label: ⅃
Looks it should not print, i did not saw it on screens

import yfinance as yf
import plotext as plt

plt.date_form('d/m/Y')
start = plt.string_to_datetime('11/06/2022')
end = plt.string_to_datetime('10/10/2022')
data = yf.download('goog', start, end)
# data.reset_index(drop=True)
dates = plt.datetimes_to_string(data.index)
plt.xlim("10/06/2022", "15/10/2022")
plt.candlestick(dates, data,label='GOOG',yside = 2)
plt.hline(100,'red',yside=2)
plt.text(' 100 ',x='12/10/2022',y=100,background='red',color='black',yside=2)
plt.show()

image

@piccolomo
Copy link
Owner

Hello @ineteye , thanks for reporting.

This an intended feature. When your axes are not the standard one (left y, lower x), it shows an icon that tells you where you are plotting.

Thinking out loud: Probably useless when you are plotting just on one set of data (more useful when multiple data are shown on different axes), and may find a way around this and update.

@ineteye
Copy link
Author

ineteye commented Oct 10, 2022

So its not possible to hide right now? Ok i will wait for update, THanks ;)))

@piccolomo
Copy link
Owner

No, unless you revert to normal axes plot. I will update neverthless

@ineteye
Copy link
Author

ineteye commented Oct 10, 2022

Thanks ;))

@piccolomo piccolomo changed the title Strange symbol '⅃' - before Label Feature Request: Remove Side Symbols in Legend (like ⅃) for Single Data Set Oct 10, 2022
@piccolomo
Copy link
Owner

piccolomo commented Oct 26, 2022

Hi @ineteye,

issue solved in new github version.

Now this code: import plotext as plt; plt.clf(); plt.plot([1,2], yside=2, label="some label"); plt.show()
outputs
image
while this, normally outputs:
image

Thanks for reporting! :-) Does it help?

@piccolomo piccolomo changed the title Feature Request: Remove Side Symbols in Legend (like ⅃) for Single Data Set Remove Side Symbols in Legend (like ⅃) for Single Data Set Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants