-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Beautified frontpage plots and two pylab examples #7740
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
Conversation
Can you either match the pixel size exactly or change the values in It would be better if it automatically copied and regenerated these on every build. |
Current coverage is 62.12% (diff: 100%)@@ master #7740 diff @@
==========================================
Files 174 174
Lines 56028 56028
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 34805 34805
Misses 21223 21223
Partials 0 0
|
@vollbier Could you squash this into a single commit (to avoid having the extra binary images in the history)? I can also do it if you like. |
…7704). * Also fixed two pylab examples. * Fixed _static/mpl.css div.responsive_screenshots * Generate frontpage pngs automatically on html build. * Also made the file doc/make.py more PEP8 conform und made the linter happier. That consisted mainly of adding blank lines and docstrings to the functions.
@tacaswell No problemo. |
I approved this as well, but would like another set of eyes on it. I was able to build the docs and things indeed look better, but this touches enough sphinx code that I hesitate to merge it myself. |
I really recommand against change the make.py. I think the goal is to move to the "modern" way for sphinx to build, and in additition of making our current documentation build system hard to maintain and not standard, this will break when we finalize the migration to make. |
Understand my last comment as: I am strongly against part of this patch unless it builds upon our current gallery system and avoids modifying the make.py. |
I am not super concerned about the changes to
|
I don't have any strong opinion about modifying |
@tacaswell I disagree with you. Most scientific projects manage just fine with normal sphinx extensions and sphinx. Is there an interest in moving to the up-to-date build system? |
I think the discussion of what's needed for matplotlib's docs going forward is easily derailed in this forum, as well as off-topic for this PR. I vote we punt that to one of the weekly dev hangouts (open to anyone interested). As far as this PR is concerned, I agree make.py is a mess, so let's just get the changes in it necessary to get the front page how we want for 2.0. |
There is absolutely no need to change the make.py for the sake of this PR. The images can be generated using the gallery system, and linked back properly to the front page if necessary. The reason I did not do this in my original PR updating those plots is that this will add 4 more plots to the gallery, which already has hundreds of example and it seemed like not such a good idea. |
I suggested in my second comment that it would be better to automatically generate these files (which @vollbier did in a very direct way). As I said above, I do not think this change moves the needle on the level of technical debt we have in
I am strongly in favor of merging this as-is, but given @NelleV 's concerns would at least one more senior dev to weigh in. |
If the changes here works and makes things more resilient to human error
(forgetting to generate images, etc.), then I am fine with small changes to
make.py to make that happen.
…On Fri, Jan 13, 2017 at 10:44 AM, Thomas A Caswell ***@***.*** > wrote:
I suggested in my second comment that it would be better to automatically
generate these files (which @vollbier <https://github.com/vollbier> did
in a very direct way). As I said above, I do not think this change moves
the needle on the level of technical debt we have in make.py and is an
improvement to building the docs.
make.py is a bit of an anachronism, but it works reliably. Updating it is
probably a good idea, but not near the top of my internal list of
priorities.
I am strongly in favor of merging this as-is, but given @NelleV
<https://github.com/NelleV> 's concerns would at least one more senior
dev to weigh in.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7740 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-HMls32QVG18FYB3lvmagHRnSnBqks5rR5vYgaJpZM4LasVf>
.
|
Changing the make.py is a terrible idea because it is a file that inherently does not belong to matplotlib. The modifications embedded in it has made my life hell in moving forward to the new makefile system, and it is because we keep doing these hacks that the project is so hard to maintain. There is a way to generate the images without modifying the make.py. I am suggesting using the tool that has been build for this purpose to do this instead of modifying the make.py. |
I really would have appreciated not merging this PR until we reached a consensus. |
👍 to removing the pie chart demo. |
On 2017/01/13 9:19 AM, Nelle Varoquaux wrote:
This breaks my patch for no good reason, and I am not putting more
effort into the migration of the makefile.
I'm sorry, @NelleV, but which patch are you referring to?
|
The migration to the Makefile. I closed the pull request, as the migration to Makefile depends on the migration of sphinx-gallery. The branch is still on my fork if someone wants to pick up the work, but considering the amount of work it requires, I doubt you'll find volunteers. |
Yes. I think the last remaining point is the sphinx-gallery migration. There are only around 350 examples to tackle there. |
Maybe the approach we need to take here is to think of the migration as gradually creating a sphinx gallery in parallel, adding new or ported examples as needed to showcase features and capabilities. In other words, eventually abandon the historical legacy of existing examples; what are good examples for Matplotlib now and in the future? |
Backported to |
This addresses bug #7704: The reason for the thick lines in the frontpage plots seem to have to do with figure size. I left the default
figsize
([6.4, 4.8]
) and changed thedpi
parameter insavefig()
from 100 to 25 dpi (which is results roughly in the same number of pixels in the image).I move the generated images by hand to the
doc/_static
directory. Should this happen automatically somehow?I also tried to make the
polar_demo.py
andpie_demo_features.py
look nicer.It does not seem possible to pass a list of strings to
autopct
parameter ofpie()
. Thus the hack to change the text properties afterwards. I'm not sure, if that's suited for a showcase. I also could delete it, as @efiring suggested. Furthermore, I'm not completely sure, if the radial positioning of the labels inpie()
is always correct.I did not succeed at changing the text appearance in
table_demo.py
.