Follow me
-
Recent Posts
calendar
December 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
Tag Archives: matplotlib
corrplot function in Python
We’ve implemented a corrplot function in Python, which is available in BioKit package – github https://github.com/biokit/biokit – pypi https://pypi.python.org/pypi/biokit For illustration, let us create some random data sets: import pandas as pd import string letters = string.uppercase[0:15] df = pd.DataFrame(dict(( … Continue reading
About matplotlib colormap and how to get RGB values of the map
matplotlib comes with lots of colormaps. First, let us see where and how to find them. Then, we will see how to extract individual colors (e.g., in RGB) from the colormap itself. Let us first creat an image from matplotlib … Continue reading
matplotlib: difference between pcolor, pcolormesh and imshow
If you have a matrix and want to plot its content as an image, matplotlib provides some functions such as imshow and pcolor. c Differences between imshow and pcolor Let us use a simple 3 by 3 matrix and call … Continue reading
How to plot left and right axis with matplotlib
Sometimes, it is convenient to plot 2 data sets that have not the same range within the same plots. One will use the left y-axes and the other will use the right y-axis. With matplotlib, you need to create subplots … Continue reading
matplotlib: latex strings are not interpreted
If the LaTeX strings are not intepreted in matplotlib (e.g., in the xlabel), check your configuration file ( see previous post for matplotlib configuration file). You can either do it for one session : rc(’text’, usetex=True) plot([1,2],[3,4]); title(’a^2’) rc(‘text’, usetex=True) … Continue reading
Matplotlib configuration
Note 4/Sept/2013: the new location is /home/user/.config/matplotlib If you have ipython, try this command ipython -pylabipython -pylab and if you have Qt, you can change the backend (library used for plotting) and use qt as follows: ipython -pylab qtipython -pylab … Continue reading