こんにちは、でめきんです。 matplotlibを使ってカラー表示をする際、既存のカラーマップでは満足がいかないことがあると思います。 そんな時は自作でカラーマップを作ってしまおうというのが今回の企画です。 準備 カラーマップ表示するには、どの値 ...
こんにちは、コグラフ株式会社データアナリティクス事業部の平松です。 今回はPythonメジャーライブラリの一つである「Matplotlib」の基礎について、コードを用いて解説します。 コードではNumPyも用いて解説しているので、合わせてimportし、学んでみて下さい! これからMatplotlibを学び始めよう ...
Create a .py file, import the library, and you can also check the version of the matplotlib library as follows: import matplotlib # first step is to import the ...
# Plotting the logarithmic data points x with linear data points y. # Creating logarithmically spaced data points between 0 and 5 with 100 points for x. # Creating logarithmically spaced data points ...