Linked Questions

3 votes
0 answers
3k views

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 ...
1 vote
1 answer
1k views

I am learning DataAnlaysis and was working with matplotlib.pyplot. I was plotting a Bar Graph using matplotlib.pyplot.bar() in Jupyter files. I used plt.show() to have a idea about the figure, but it ...
0 votes
1 answer
981 views

In jupyter notebook I cannot see this graph: feature_importances = pd.Series(clf.feature_importances_, index=columns) feature_importances.sort_values(inplace=True) feature_importances.plot(kind="barh"...
progster's user avatar
  • 937
0 votes
1 answer
972 views

I'm trying to plot a shear force graph in Google Colabratory using numpy and matplotlib.pyplot, and it's not showing up in the output section. My code is as follows: import matplotlib.pyplot as plt ...
0 votes
1 answer
532 views

Following the pandas documentation for visualization (https://pandas.pydata.org/pandas-docs/stable/visualization.html#visualization-hist) I am trying to create the following graphics: import numpy as ...
0 votes
1 answer
666 views

import matplotlib.pyplot as plt %matplotlib inline fig=plt.figure() plt.show() Output is: matplotlib.figure.Figure at 0x536ea70 I want to see empty plot and i was going through a pycon tutorial ...
0 votes
1 answer
512 views

I have some data in CSV file and want to plot it but the grapgh not showing up this is a screenshot showing data table and code this is the CSV file http://www.mediafire.com/file/2gtbxm5adom7m4j/...
0 votes
1 answer
80 views

I am using the following piece of code import pandas as pd from matplotlib import pyplot as plt %matplotlib inline x = [1, 2, 3, 4, 5, 6] y = [2, 6, 5, 12, 10, 16] data_viz = plt.plot(x, y) .... ...
1 vote
0 answers
64 views

I have a pandas dataframe and I want to annotate the data points to the values in the dataframe. The dataframe has 4 columns Returns, Volatility, ,Cl and Symbol. Return and Volatility are floating ...
969 votes
12 answers
1.1m views

What exactly is the use of %matplotlib inline?
95 votes
7 answers
126k views

Every time I launch IPython Notebook, the first command I run is %matplotlib inline Is there some way to change my config file so that when I launch IPython, it is automatically in this mode?
66 votes
2 answers
286k views

I am trying to import all the images inside a directory (the directory location is known). path = /home/user/mydirectory I already know a way of finding out the length of the directory. What I'm not ...
51 votes
1 answer
50k views

I installed anaconda to use pandas and scipy. I reading and watching pandas tutorials and they all say to open the ipython notebook using ipython notebook --pylab==inline but when I do that I get a ...
Kapil Pau's user avatar
  • 511
8 votes
8 answers
59k views

When making a plot, I used both Jupyter Notebook and Pycharm with the same set of code and packages. The code is: import pandas as pd import numpy as np import matplotlib.pyplot as plt # as in ...
13 votes
2 answers
23k views

I'd like to have a batch file in one folder with a python script. The batch file should call the script in IPython and plot the figures inline / embedded. Though there is lots of info on this around, ...
embert's user avatar
  • 7,672

15 30 50 per page
1
2 3