Skip to main content

All Questions

1 vote
1 answer
858 views

How to fully delete plots from subplot and properly resize?

I am trying to create a corner plot for an upcoming paper, but I'm running into difficulty. I am creating an N x N array of subplots (currently, N = 6) and then deleting a bit over half of them. The ...
mknote's user avatar
  • 177
0 votes
1 answer
130 views

Assigning more than one word to a node in a graph using networkx and matplotlib

I want to create a graph for a sentence by assigning words to the nodes based on the tag assigned to each word. If the word is a proper noun, it will be assigned to the subject list, if the word is a ...
Sheryl's user avatar
  • 79
9 votes
2 answers
10k views

Zoom and Pan Options in plots for matplotlib on jupyter Notebook

I would like to have zooming and panning options for plots generated in matplotlib on jupyter notebook. I tried installing mpld3 but importing the package doesn't generate my plots at all. Is it an ...
Tanmay Bhore's user avatar
0 votes
0 answers
36 views

Figures output in Jupyter

The attached minimal example implements multithreading, to plot several simple figures. For the attached example, there is no output at all. In case that the first line in scheme_fun_2 # print('.'...
Gideon Kogan's user avatar
0 votes
1 answer
95 views

Legend loses second artist when I move it outside plot

When I add a second data series to my plot (with a secondary y-axis) and attempt to move the legend, I lose the reference to the second series. It works if I don't try to move the legend location, ...
m.j.har's user avatar
0 votes
1 answer
3k views

Seaborn x-axis format

After creating a Pandas dataframe, I am generating a Seaborn heatmap using the following commands: # Create heatmap f, ax = plt.subplots(figsize=(20, 10)) g = sns.heatmap(df_abs, cmap='inferno', vmin=...
AaronJPung's user avatar
  • 1,144
0 votes
1 answer
338 views

Create MNIST input with Juptyer

I'm trying to draw a digit with Jupyter Notebook and provide it as input to neural network to predict. I used the following code to draw the pixel, not receiving the input. %matplotlib notebook ...
Kannaiyan's user avatar
  • 13.1k
0 votes
1 answer
7k views

ImportError: No module named matplotlib even using pip install matplotlib

I am importing matplotlib from Jupyter Notebook but get the following error. ImportError: No module named matplotlib Settings: Python 2 MacBook conda: 4.3.30 After run conda list it got: ...
JustAnotherJavaDeveloper's user avatar
1 vote
1 answer
360 views

python2.7: matplotlib in jupyter notebook can't use qt

I've installed python2.7 and installed matplotlib using pip. When I execute: % matplotlib qt It get the error: No module named pyqt4, pyqt5... So I installed pyqt4 using .whl file, and the error ...
an offer can't refuse's user avatar
3 votes
0 answers
3k views

How to change matplotlib backend setting? [duplicate]

I'm using the Jupyter notebook for python 2 to write code. I change the backend of matplotlib in one notebook with the following code and get a GUI. import matplotlib matplotlib.use('TkAgg') When I ...
Kann7's user avatar
  • 63
29 votes
5 answers
24k views

How to Display Dataframe next to Plot in Jupyter Notebook

I understand how to display two plots next to each other (horizontally) in Jupyter Notebook, but I don't know if there is a way to display a plot with a dataframe next to it. I imagine it could look ...
David Yang's user avatar
  • 2,151
3 votes
0 answers
527 views

Lighting in 3D matplotlib scatterplot

I have a point cloud that looks like ...a cloud. It has bulging features in some places, and "creases" in other places. To illustrate my issue, I've attached a sample image below (the script used to ...
AaronJPung's user avatar
  • 1,144
5 votes
1 answer
6k views

Show matplotlib plot inline in jupyter when plot is created in external function

I am running an inference algorithm and would like to show the likelihood function after each iteration. However, the plotting function is part of a package that i am importing. I've managed to cobble ...
user3235916's user avatar
1 vote
1 answer
316 views

Displaying PNG in matplotlib.pyplot framework in python 2.7

I am pulling PNG images from Jupyter Notebooks and manage to display with IPython.display.Image but not with matplotib.pyplot.plt. What am I missing? I use python 2.7. I am using the following ...
elzurdo's user avatar
  • 629
0 votes
1 answer
2k views

Conditional colors in scatter plot

In the below toy example, I would like to make conditional colors in my scatter plot such that for all values, say 3 < xy < 7, the opacity of the scatter points are alpha = 1, and for the rest ...
astromonerd's user avatar

15 30 50 per page