2 Feature Requests: Plot Extra Grid Lines and deal with 'None' Values in Data Plot
See original GitHub issueHi,
The DateTime plot plot_date
requires all values to be numeric (None/NaN/np.nan is not accepted), but it’s useful to be able to display shorter lines that don’t span the whole time frame, which requires a way to represent no data like None/NaN. What I’m trying to do is to add some arbitrary trend line/channel on a stock price series.
Can you support this?
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
4.5 The grid Package | Mastering Software Development in R
The book covers R software development for building data science tools. ... Grid graphics is a low-level system for plotting within R and...
Read more >How to get rid of grid lines when plotting with Seaborn + ...
This is the best answer since you can use it with seaborn, pandas and matplotlib alike. Just call ax.grid(False) on whatever axes you...
Read more >Matplotlib Adding Grid Lines - W3Schools
With Pyplot, you can use the grid() function to add grid lines to the plot. Example. Add grid lines to the plot: import...
Read more >Chapter 4. Visualization with Matplotlib - O'Reilly
In [ 10 ]: # First create a grid of plots # ax will be an array of two Axes objects fig ,...
Read more >Adding Grid Lines To The Plot | Matplotlib | Python Tutorials
In this Python Programming video tutorial you will learn about grid function of pyplot module in matplotlib package in detail.
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
Thanks for the quick response,
I realized I used your API incorrectly. There is no issue. I’m used to other chart libraries that require all time series to share the same time frame and where there is no data, a NaN or None is expected.
Turned out multiple
plot_date
can have different dates as long as each has the same data length and date length. Here is just for reference.Another question though, is there a way to show vertical lines on certain dates or horizontal lines on certain values? That would be similar to the existing Grid feature but only on specific locations.
Here is an example of an arbitrary vertical line when I use another lib called uniplot
Glad it worked 😃,
new 4.1.5 PyPi version also available.
Thanks, Savino