Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using matplotlib without Tkinter #7115
I am using matplotlib on a headless server, so I don't have or want any GUI support.
Recently (since about 3 days ago, no what this update may have coincided with) I have become unable to import
I believe some other change in my system exposed this long hidden issue, and
You just need to set the backend to be
If you can not get this to work again, please send an email to the user mailing list (firstname.lastname@example.org / https://mail.python.org/mailman/listinfo/matplotlib-users you will have to join to post un-moderated).
This was referenced
Sep 15, 2016
referenced this issue
Sep 2, 2017
@tacaswell TL;DR: right in the installation instructions.
This is a typical issue with documentation about software which can be used with different sub libraries especially in the linux world.
Its absolutely correct to link the theory about "What is a backend?" from the installation instruction as the full theory is not necessary for those instructions. However that doesn't mean that the installation instruction should not tell anything at all about the different possibilities and how to deal with it as the installation instructions is meant for a user that doesn't have a clue about all this stuff. So what he needs is some sane default path to go with. Apart from the theory everybody already knows that a "backend" would be something that can be switched and eventually needs to be decided on, so please tell me right away what I should choose for my first steps with this tool/product/software and do not hide that behind some wall of text which I need to click a link before even seeing.
If there ever is two choices that cannot clearly compared to each other regarding which is the sanest one, the instruction should explain very precisely and briefly what the difference is, what the recommended approach for either path is and if necessary also how to determine what path the reader is currently one as you cannot assume any of that.
I'm finding the documentation slightly confusing on this point. The documentation suggests the following:
However, I don't think this example is clear. I tried:
and it didn't work. Am I supposed to use something else for
@tacaswell Idk if I'm the right person for that. I was replying to your question where that documentation should be placed but I'm unsure If I know 100% on what that documentation should tell. Maybe you could provide me a brief step-by-step list for a very simple example that plots