Questions tagged [matplotlib]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
4 answers
18k views

Best way to insert high quality figures in MS Word

I need a way to insert hight quality PDF figures into Word without them distorting. The figures are mostly scientific graphs generated through Python and Matplotlib. The main problem is the text ...
0 votes
1 answer
843 views

Jupyter Kernel Dies when Attempting Plot with large set of data

I have a numpy array res. res[0] contains x values and res[1] contains y values. There is in total 1000000 points. I am trying to plot it using matplotlib; however, after running the plot, it tells me ...
5 votes
1 answer
12k views

_tkinter.TclError: couldn't connect to display "localhost:0.0" matplotlib bash on windows

Insipired by the problems with displaying matplotlib used in a Python script using the terminal of the Bash (Ubuntu) on Windows, I have followed the instructions listed in the first answer. However, ...
0 votes
0 answers
947 views

ffmpeg command, what is the "best" config to re-encode video Youtube?

Let's say we have a video generated with matplotlib.animation with the code below (while can't figure how to have the mp4 file with HD 1080p, but we can re-encode with Final cut pro HD 1080p) Writer =...
1 vote
2 answers
3k views

Unable to install matplotlib on Mac Mountain Lion - "error: command 'gcc' failed with exit status 1"

I have been trying to install matplotlib through easy_install(easy_install-2.7 for python2.7) and by building from source(https://github.com/matplotlib/matplotlib). But both fail with the error - "...
0 votes
0 answers
198 views

Want to have further segment from another pie chart

I hope the picture is self-explanatory. I have already a pie chart I have to have a further segment in the chart but it has to keep the previous parent segment intact. I have tried this in Excel and ...
0 votes
1 answer
183 views

Python, Eclipse or Windows 10 won't recognize matplotlib

I'm using Eclipse on Windows 10. I would like to make a function plotter so I started a program as import tkinter from matplotlib.backends.backend_tkagg import ( FigureCanvasTkAgg, ...
1 vote
2 answers
7k views

Jupyter Kernel Dies when Attempting a Simple Plot (Python)

My Jupyter Notebook cannot even draw a simple plot anymore. Until yesterday, it could plot all kinds of plots of matplotlib and seaborn. It is not a memory error because there are 1.6 GB available. ...
14 votes
6 answers
22k views

Error when updating conda packages: RemoveError: 'setuptools' is a dependency of conda

I needed to update the matplotlib when I encountered the following error: conda update matplotlib Collecting package metadata: done Solving environment: done ## Package Plan ## environment ...
1 vote
1 answer
436 views

How to remove the bland space to the left of ylabel in Matlab figure when using long string for ylabel?

I'm doing some plots in Matlab 2014b, in one them I'm plotting 5 variables versus time over there and want to specify 5 names like, speed (rad/sec), voltage (V), ... etc. on the y-label, however, as ...
2 votes
2 answers
5k views

how to: bspwm bspc rule for floating matplotlib figures

I have recently started using bspwm and I have been blown away by the improvement in my workflow. There is however one thing that has been bothering me: I am writing data analysis scripts in python ...
4 votes
2 answers
9k views

Can't install anything on pip

Everytime I try to install anything on pip it ends with following error message. The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, ...
1 vote
1 answer
2k views

Installing Matplotlib on Windows 10 machines

I am trying to install Matplotlib on my Windows 10 64-bit computer using Python's pip installer. Any advice would be appreciated. When I try I get the following extensive error return that I do not ...
1 vote
0 answers
77 views

Installing Basemap for python

Trying to install basemap via this website Basemap Matplotlib Toolkit I have followed everything they say until this part of the installation: if libgeos_c is in /usr/local/lib and geos_c.h is in /...
0 votes
1 answer
343 views

it receive the following error when use matplotlib

MathTextWarning: Font 'default' does not have a glyph for '-' [U+2212], substituting with a dummy symbol. MathTextWarning)
0 votes
2 answers
3k views

What's the cause of this strange crash behavior related to Python, Anaconda, Matplotlib, MKL, & Jupyter?

We're pretty stumped on this crash issue as we don't get any tracebacks or other messages about what's actually wrong so it's been tough to debug. Anyhow, here goes. We have a workstation for ...
0 votes
2 answers
2k views

Pip not included in Python3.6 on CentOS 7?

When running which python3.6, I get /usr/bin/python3.6. But when I try python3.6 -mpip install matplotlib, it says /usr/bin/python3.6: No module named pip. I was informed that pip SHOULD be ...
0 votes
1 answer
658 views

Matplotlib - Basemap Installation Error

Installed basemap via pip pip3 install --user git+https://github.com/matplotlib/basemap.git from mpl_tooklits.basemap import Basemap I get the error module 'pyproj' has no attribute 'pyproj_datadir'...
3 votes
1 answer
18k views

3D plot with matplotlib from imported data

I am looking to plot a 3D surface. The data is generated in mathematica and exported in a file with three columns separated by spaces (I can switch it to comma or other delimiter). The problem I have ...
1 vote
0 answers
969 views

Install customplot on python 3.5

Faced the below error when I import customplot on pycharm (python 3.5) Tried import sipdistutils as well on command prompt but no distribution is found. Collecting qcustomplot Using cached https://...
1 vote
0 answers
151 views

iterm itermplot tmux scroll makes plots disappear

I have a tmux session in my iTerm2 window with a single pane. When I plot something using ipython (with itermplot) it appears as expected. As soon as I switch to scrolling mode ( [ ), the plot ...
2 votes
2 answers
58 views

Plot/graph/chart generalized language, schema or API [closed]

I swear at some point I ran across a project to come up with a generalized schema to describe (plots|graphs|charts). But I can't seem to dig it up in google now. The idea was that every plotting ...
1 vote
1 answer
437 views

View extra large PDF files on Linux

I have a 18000x18000px PDF file I generate via matplotlib. Before printing I would like to preview it, at least at 20% zoom. Sadly nothing I have tried so far works: evince will only open it at a ...
0 votes
2 answers
4k views

Can't import matplotlib on Anaconda (Python), on my Mac, even though it's installed on the terminal and set as a default

So basically on my Ipython I can't get it working even though it's installed, and the terminal shows that it should be working. Syntax and Error In [1]: import matplotlib.pyplot as plt -------------...
1 vote
0 answers
72 views

Plot abscissa points

I have been instructed to plot abscissa points. This is new to me, even the concept is alien to me. I have a set of data, where S is the x-axis and res the y-axis. The goal is to plot a figure where ...
0 votes
3 answers
356 views

Attempting to make a multi-column graph

I am trying to make a column graph where the y-axis is the mean grain size, the x-axis is the distance along the transect, and each series is a date and/or number value (doesn't really matter). Here ...
4 votes
2 answers
6k views

Cannot install matplotlib in cygwin (freetype issue)

It would be really nice to have matplotlib in my cygwin environment. I have 64-bit Windows 8 with 64-bit cygwin. When I type: pip install matplotlib I get whe following error message: * The ...
4 votes
4 answers
14k views

Matplotlib font_manager.py font finding error

On a Ubuntu 12.04 machine, whenever I plot something I get an error like: /usr/lib/pymodules/python2.7/matplotlib/font_manager.py:1228: UserWarning: findfont: Could not match :family=Bitstream ...
0 votes
1 answer
747 views

install matplotlib with pip when pygtk is in non standard location

I have installed PyGTK 2.24.0 in /software/pygtk-2.24.0/gcc directory. Is there any way without rewrite the setup program how to install matplotlib with pip? Simple pip install matplotlib builds ...
0 votes
1 answer
48 views

The location of the compiled binaries of matplotlib

What is the location of the compiled binaries of matplotlib after I use pip install matplotlib to install it?
5 votes
1 answer
3k views

What's the quickest way to parse and display a `.csv` file?

I am currently using python with matplotlib to display a 440+ k lines .csv but it takes 11 sec to display only one column. My .csv has always the same format. Is there a way to parse it quicker ? I ...
3 votes
1 answer
3k views

OSX 10.8 PIP matplotlib 'freetype/config/ftheader.h' file not found

I apologize ahead of time if this topic has already been discussed. My situation seems to vary slightly from the others such that the path to my files is different. When trying to install matplotlib ...
1 vote
0 answers
4k views

Why is there a .matplotlib folder in my home folder of Windows 8.1?

I even do not install python. And after I delete it, it will appear after a while. So I think it was created by some other applications. Does any one has met the same problem and know why? In ...
1 vote
1 answer
87 views

Sage: graphics are plotted on the wrong X11 display

I set up a sage server by adding the following line to my ~/.profile: nohup sage -c "notebook(interface='', secure=True, automatic_login=False, directory='./sage_notebook.sagenb')" >/dev/null 2>...
1 vote
1 answer
5k views

ssh -X with cygwin on Windows: "Unable to access the X Display"

I'm on a windows machine, trying to run a python program on my lab's server, and would like to be able to see the output plots it produces. Here is what I type to try: ssh –X user@server python ...
user avatar
0 votes
3 answers
20k views

install python2.7.3 + numpy + scipy + matplotlib + scikits.statsmodels + pandas0.7.3 correctly

...using Linux (xubuntu). How to install python2.7.3 + numpy + scipy + matplotlib + scikits.statsmodels + pandas0.7.3 correctly ? My final aim is to have them working. The problem: ~$ python --...