Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Two entries in examples fo marker_reference.py #7429

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

Closed
anntzer opened this issue Nov 8, 2016 · 7 comments
Closed

Two entries in examples fo marker_reference.py #7429

anntzer opened this issue Nov 8, 2016 · 7 comments
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Nov 8, 2016

There are two entries in http://matplotlib.org/devdocs/gallery.html#lines_bars_and_markers for marker_reference.py that point to the same page -- likely because that example generates two plots.

A few possibilities:

  • generate a single plot (probably the simplest and good enough).
  • split the example into two files.
  • somehow have the second link point to an HTML anchor corresponding to the second plot.
@petehuang
Copy link
Contributor

This happens many, many times in the gallery:

  • marker_reference
  • boxplot_demo
  • interpolation_none_vs_nearest
  • streamplot_demo_features
  • pie_demo_features
  • etc.

Is having multiple links to the same page that bad? Certainly a repetition concern, but I don't know that the DRY mentality needs to be held as strongly for docs

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jan 3, 2017
@tacaswell
Copy link
Member

I strongly prefer the third option (making the gallery link out to the correct image). This may be made moot by sphinx-gallery @NelleV ?

@dopplershift
Copy link
Contributor

For sphinx-gallery, you get one thumbnail, though you you have the option of controlling which plot it selects.

@choldgraf
Copy link
Contributor

This is no longer an issue since we're using sphinx-gallery...this issue can be closed

@QuLogic
Copy link
Member

QuLogic commented Jul 15, 2017

For some reason, the file @anntzer linked is still in the devdocs when it shouldn't be, but if you navigate to the correct gallery page, then there are no duplicates as @choldgraf states.

@QuLogic QuLogic closed this as completed Jul 15, 2017
@choldgraf
Copy link
Contributor

that is weird!

@QuLogic
Copy link
Member

QuLogic commented Jul 15, 2017

Could be because of #8875.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants