Showing posts with label Color. Show all posts
Showing posts with label Color. Show all posts
Draw multiple axhlines and axvlines in one function using Python & Matplotlib
The result is:
This page shows how to draw multiple axhlines and axvlines in one function using python and matplotlib.
Convert color pdf to grayscale pdf using Python & Matplotlib via Ghostscript
This page shows how to convert color pdf figures generated by python and matplotlib into grayscale pdf via Ghostscript.
Plot 12-bit tiff image with log scale colorbar using python & matplotlib.pyplot
The result is:
Some of the output data from measuring equipment have 12-bit unsigned int data. In some case, tiff format is used to ensure the convenience of the users. Reading the 12-bit tiff file and plotting the 12-bit tiff file is very easy. In addition, you can increase the visibility of the output figure by using log scale colormap when you plotting the tiff file. This page shows how to plot 12-bit tiff file in log scale using python and matplotlib.pyplot. 2D gaussian distribution is used as an example data.
Draw two axis to one colorbar using python and matplotlib.pyplot
The result is:
In my post in 14th, Oct. 2018, I showed how to draw second tick axis on the colorbar. The method of plotting is not so good, so I'd like to show an improved way to draw second tick axis on the colorbar. This page shows how to draw two axis to one colorbar using python and matplotlib.pyplot. By adapting twinx to the colorbar axis and by shifting the position of labels and ticks, you can draw an figure like the example on this page.
Combine three 2D colorap in one figure using Python and Matplotlib.pyplot
The result is:
If you want to plot three 2D colormaps on one figure, the only feasible way is combining these three colormaps to one image. This can be achieved by corresponding three values to three primary elements, i.e. red, green, blue. However, interpretation of the completed figure is quite complex, and easiness of understanding for readers would be decreased. In my opinion, this way for plotting should be avoided.
Draw three colormap with two colorbar using python and matplotlib.pyplot
The result is:
This page shows an example of how to arrange three colormap with two colorbar. One colorbar corresponds two colormaps, while the other corresponds to one colormap. Gridspec enables us to properly adjust these positions in the figure.
Pcolor with cut data below lower limit using Python and matplotlib.pyplot
The result is:
This page shows how to generate pcolor graph with a data whose small values below minimum limit are cut using python and matplotlib.
Combine two contourf and one colorbar into one figure using Python and matplotlib.pyplot
The result is:
This page shows how to combine two contourf and one colorbar into one figure using python and matplotlib.pyplot.
Plot contour figure from data which has large scale and plus-minus difference with minimum limit using Python and matplotlib.pyplot
The result is:
This page shows my suggestion to generate contour figure from data which has large scale and plus-minus difference using python and matplotlib.pyplot. The minimum value and maximum value can be specified in this code.
Labels:
Color,
Contour,
Label,
Log,
Matplotlib,
Python,
Simulation,
Symlog
Combine two contourf and two colorbar into one figure using Python and matplotlib.pyplot
The result is:
This page shows how to combine two contourf and two colorbar into one figure using python and matplotlib.pyplot.
Plot contour figure from data which has large scale and plus-minus difference using Python and matplotlib.pyplot
The result is:
This page shows my suggestion to generate contour figure from data which has large scale and plus-minus difference using python and matplotlib.pyplot.
Labels:
Color,
Contour,
Label,
Log,
Matplotlib,
Python,
Simulation,
Symlog
Kernel density estimation using Python, matplotlib.pyplot and scipy.stats.gaussian_kde
The result is:
This page shows how to change the color of the scatter point according to the density of the surrounding points using python and scipy.stats.gaussian_kde and matplotlib.
Subscribe to:
Comments (Atom)













