`chain_prop` docstring entry missing in `matplotlib` `plot_trace()`
See original GitHub issueDescribe the bug
chain_prop
argument entry in matplotlib
backend of plot_trace()
docstring is missing.
It exists downstream at https://github.com/arviz-devs/arviz/blob/57aeded2fff88a646939fc36e5b2a86a0cf718b0/arviz/plots/traceplot.py and could be reproduced. But I’d like more information about valid properties that can be cycled. Can linestyle, color, lw, alpha, etc be used?
Also, somewhat related, I think that with the black
formatting, this chunk at
https://github.com/arviz-devs/arviz/blob/57aeded2fff88a646939fc36e5b2a86a0cf718b0/arviz/plots/backends/matplotlib/traceplot.py#L148-L155
would be clearer to read as:
if chain_prop is None:
chain_prop = {"linestyle": ("solid", "dotted", "dashed", "dashdot")}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
matplotlib: drawing lines between points ignoring missing data
I have a set of data which I want plotted as a line-graph. For each series, some data ...
Read more >Writing documentation — Matplotlib 3.6.2 documentation
Most documentation is either in the docstrings of individual classes and ... If there are multiple code elements with the same name (e.g....
Read more >Chapter 4. Visualization with Matplotlib - O'Reilly
Matplotlib is a multiplatform data visualization library built on NumPy arrays, … ... for more details, I'd suggest viewing the docstring of the...
Read more >Python Plotting With Matplotlib (Guide)
Pylab and pyplot: which is which? Key concepts of matplotlib's design; Understanding plt.subplots(); Visualizing arrays with matplotlib; Plotting with the ...
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 FreeTop 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
Top GitHub Comments
And the docstring examples need to be updated since
compact=True
is the default now.Examples 2 and 5 (https://arviz-devs.github.io/arviz/api/generated/arviz.plot_trace.html) should be updated.
Example 2 should be (to illustrate what changing
compact
achieves):and Example 5 should be
or
and maybe consider whether the function should actually be changed to accommodate an ‘over-specified’ lines
Right, basically anything on this matplotlib page is valid:
I realize that the high-level docstring should be updated to describe it as a
dict
instead oftuple
:and maybe
compact_prop
needs to be updated, too