If I understand your question right, you want to plot two things on the same axes
with no shared axis
. There is probably a better way to do this, but you can stack twinx
(doc) and twiny
(doc) as such
ax # your first axes ax_new = ax.twinx().twiny()
Which will give you tick marks on all sides of the plot. ax
will plot against the bottom and left, ax_new
will plot against the top and right.
Related Posts:
- python – how to get the data from an plt.imshow()?
- How do I draw a grid onto a plot in Python?
- How to plot ROC curve in Python
- pyplot scatter plot marker size
- How can I convert an RGB image into grayscale in Python?
- How to plot time series in python
- When to use cla(), clf() or close() for clearing a plot in matplotlib?
- Display an image with Python
- Giving graphs a subtitle in matplotlib
- How to plot a 2d matrix in python with colorbar? (like imagesc in Matlab)
- Purpose of “%matplotlib inline”
- Purpose of “%matplotlib inline”
- ImportError: No module named matplotlib.pyplot
- RuntimeWarning: invalid value encountered in divide
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- matplotlib savefig() plots different from show()
- Save plot to image file instead of displaying it using Matplotlib
- ImportError: ‘No module named plotly.plotly’ in LinuxMint17.3
- No handles with labels found to put in legend
- How to plot a histogram using Matplotlib in Python with a list of data?
- Plot logarithmic axes with matplotlib in python
- How can I plot a confusion matrix? [duplicate]
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- matplotlib error – no module named tkinter
- Python,IndexError: arrays used as indices must be of integer (or boolean) type
- pandas DataFrame “no numeric data to plot” error
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- How to resolve TypeError: ‘No Numeric Data to Plot’, when numeric data exists in Python
- How do you change the size of figures drawn with Matplotlib?
- Is there a list of line styles in matplotlib?
- Matplotlib automatic legend outside plot
- Add Legend to Seaborn point plot
- A tool to convert MATLAB code to Python
- How can one display an image using cv2 in Python
- Changing the “tick frequency” on x or y axis in matplotlib?
- matplotlib error – no module named tkinter
- Plotting multiple different plots in one figure using Seaborn
- Plot pie chart and table of pandas dataframe
- ModuleNotFoundError: No module named ‘matplotlib’
- Change figure size and figure format in matplotlib
- TypeError: ‘DataFrame’ object is not callable
- Improve subplot size/spacing with many subplots in matplotlib
- How do I plot only a table in Matplotlib?
- Python equivalent to ‘hold on’ in Matlab
- How to add title to subplots in Matplotlib
- Overcome ValueError for empty array
- Using %matplotlib notebook after %matplotlib inline in Jupyter Notebook doesn’t work
- How to change a ‘LinearSegmentedColormap’ to a different distribution of color?
- Display image as grayscale using matplotlib
- Create own colormap using matplotlib and plot color scale
- Why matplotlib does not plot?
- reducing number of plot ticks
- How to increase plt.title font size?
- Modify the legend of pandas bar plot
- Plot a horizontal line using matplotlib
- Remove xticks in a matplotlib plot?
- How to add title to seaborn boxplot
- scipy.signal.spectrogram compared to matplotlib.pyplot.specgram
- How to update a plot in matplotlib?
- ValueError: x and y must be the same size
- ValueError: Unknown projection ‘3d’ (once again)
- How to change plot background color?
- raise LinAlgError(“SVD did not converge”) LinAlgError: SVD did not converge in matplotlib pca determination
- TypeError: Invalid dimensions for image data when plotting array with imshow()
- matplotlib does not show my drawings although I call pyplot.show()
- Linear regression with matplotlib / numpy
- How to save a Seaborn plot into a file
- Plot correlation matrix using pandas
- Scatter plot colorbar – Matplotlib
- matplotlib: how to draw a rectangle on image
- bbox_to_anchor and loc in matplotlib
- matplotlib: RuntimeError: Python is not installed as a framework
- How can I set the ‘backend’ in matplotlib in Python?
- Python, Matplotlib, subplot: How to set the axis range?
- RuntimeError: Invalid DISPLAY variable
- How to plot an array in python?
- When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error?
- Seaborn Lineplot Module Object Has No Attribute ‘Lineplot’
- IndexError: index 2 is out of bounds for axis 0 with size 2
- Matplotlib plots: removing axis, legends and white spaces
- Label axes on Seaborn Barplot
- Plot a histogram such that the total area of the histogram equals 1
- matplotlib: plot multiple columns of pandas data frame on the bar chart
- How to change legend size with matplotlib.pyplot
- An equivalent function to matplotlib.mlab.bivariate_normal
- Superscript in Python plots
- IPython, “name ‘plt’ not defined”
- Plotting a python dict in order of key values
- Pandas dataframe groupby plot
- MovieWriter ffmpeg unavailable; trying to use class ‘matplotlib.animation.PillowWriter’ instead
- How to plot normal distribution
- Python basemap module impossible to import
- How do I tell Matplotlib to create a second (new) plot, then later plot on the old one?
- Installing Pylab/Matplotlib
- TypeError: zip argument #2 must support iteration
- numpy/scipy/ipython:Failed to interpret file as a pickle