I'm trying to create a class of draggable lines using matplotlib handling and picking. The aim is to set different thresholds and intervals on a graph. Here is
I need to use cartopy to plot a thing. Running the example from their website import cartopy.crs as ccrs import matplotlib.pyplot as plt ax = plt.axes(projecti
I have the following code import matplotlib.pyplot as plt import numpy as np array = np.pad(np.random.rand(300,300),10,'constant', constant_values = nan) fi
Below shows a plot of simulated data, which contains the xticks that I want to modify. By default, the pd.df.plot chooses dates that are approximately 3 months
I want to plot a 2d array using matplotlib, and then extract the curser position when I click on the plotted image. Here's a minimal working example of how I wo
Hi I don't know if this is possible, but I have made a bar plot in python where the color is a hex value. If I have the value that a hex code corresponds to, i
Hi I don't know if this is possible, but I have made a bar plot in python where the color is a hex value. If I have the value that a hex code corresponds to, i
I have a plot where different colors are used for different parameters, and where different line styles are used for different algorithms. The goal is to compar
Say I'm making a plot with five items, and only have room to create a legend with 3 columns (more columns than this would be too wide), e.g. import matplotlib.p
Suppose I want to make 2+ heatmaps (on the same, or different Figures) and have the color<->value mapping be the same among them. By default, the extre
I have an pm2_5 dataframe data which I've plotted using a matplotlib scatterplot. I want to insert multiple horizontal lines at different y-values, I'm doing it
I would like to do this : I have this python code : import numpy as np import pylab as plt a = np.array([1,2,3,4,5,6,7,8,9,10]) b = np.array([7,8,6,3,2,1,5,8,4
I'm using factorplot(kind="bar"). How do I scale the y-axis, for example with log-scale? I tried tinkering with the plots' axes, but that always messed up the b
I need to align a cartopy 2D map subplot with a 1D line subplot, using the following code: import xarray as xr import cartopy.crs as ccrs import matplotlib.pyp
Going through some tutorials on matplotlib animations and encountered this problem. I am using the matplotlib.animation funcanimation as follows: import matplo
I'm trying to create a matplotlib plot with an exponential(?) Y axis like the fake one I've mocked up below. For my data I want to spread the values out as they
If you have a Colormap cmap, for example: cmap = matplotlib.cm.get_cmap('Spectral') How can you get a particular colour out of it between 0 and 1, where 0 is t
I run the following code in PyCharm 3.4.1, and it highlighted %matplotlib inline showing syntax error, and I delete the first line, and run, I expect it will pr
I want to plot the output of this simple neural network: model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) history = model.fit
I would like to use matplotlib to plot an x,y graph. To do this, I downloaded "matplotlibcpp.h" from github : https://github.com/lava/matplotlib-cpp However, in