-
Notifications
You must be signed in to change notification settings - Fork 80
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
Date Time Plot Limits Bug #138
Comments
Using |
Sorry can not make xlim to work, plot was based on this example code:
Can you please help, i want add padding 1 bar from left and right |
Hi @ineteye, thanks for the report as you were right, there was no date time support for the This now should work: import yfinance as yf
import plotext as plt
plt.clf()
plt.date_form('d/m/Y')
start = plt.string_to_datetime('11/04/2022')
end = plt.today_datetime()
data = yf.download('goog', start, end)
dates = plt.datetimes_to_string(data.index)
plt.xlim("01/04/2022", "15/10/2022")
plt.candlestick(dates, data)
plt.show() Does it help? |
Try: For all other aspects of this issue, feel free to reopen it. to make sure are not forgotten. |
Thanks again! Now works fine :))) |
Hi @ineteye, I have cleaned this issue and moved sub requests to other issues for clarity in case some other users need to find it. Thanks for reporting and any other report is very welcomed! :-) |
Hi!
2.Is there any way to add margin or offset from plot sides?
THANKS!!!!
The text was updated successfully, but these errors were encountered: