Feature Request: Integrate colorize() in text(), indicator() etc.
See original GitHub issueHi!
1.Was playing with colorize on label. Maybe i should add some format options, right side just went away. or some issue with space calculations.
2.also is it possible to place label on right side?
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")
h=plt.colorize(str(round(data['High'][-1],2)),'green')
l=plt.colorize(str(round(data['Low'][-1],2)),'red')
label='GOOG '+l+'|'+str(round(data['Close'][-1],2))+'|'+h
plt.candlestick(dates, data,label=label,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()
Issue Analytics
- State:
- Created a year ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Issues · piccolomo/plotext - GitHub
Feature Request : Integrate colorize() in text(), indicator() etc. ... ProTip! Type g p on any issue or pull request to go back...
Read more >Make the color of the hidden conditional text indicator match ...
Currently, the color of the hidden conditional text indicator is orange. But why orange?why not something more useful?
Read more >Programmatic Language Features - Visual Studio Code
These guidelines present the language features available in Visual Studio Code and explain the ... function onChange() { let uri = document.uri; check(uri....
Read more >Bring back the "Community / Custom Indicator" Text Color
Before this new chart update the indicator list use to have all Community and custom made Indicators in “Blue ... Tradovate Feature Requests....
Read more >Image Hotspots Tutorial | H5P
Next, there are Hotspot icon and Hotspot color option: You can choose from the list of Predefined icons or upload your custom icon:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @ineteye,
no currently
colorize()
cannot be used insideindicator()
. I did not follow the rest of the bug, could you please send some code and snapshot an perhaps explain it differently? Thanksye it will work, but it will screw positioning! my recommendation is do not use colorize in xlabel, as i told you.
the extra color ansi codes will mess with positioning.
if you need extra number indicators, follow example, or add them to xlabel with no colors.