You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
トップ 言語 等 CSS HTML JavaScript Python ライブラリ・プラットフォーム jQuery micro:bit Xamarin ドキュメンテーション Doxygen JSDoc Markdown SHFB (Sandcastle Help File Builder) XML ドキュメント コメント その他 各種資料 子サイト・SNS 簡易リファレンス・Tips Facebook X サポート寄付 メイン概要 目次 実行バージョン 外部リンク 構文【構文一覧】 空行 行継続 複数文 インデント 代入文 (=) 代入文 (代入演算子) 代入式 (:=) 3.8 #【コメント】 # coding【エンコード宣言】 '''【ドキュメンテーション文字列】 assert【診断 (デバッグ)】 async【コルーチン】3.5 break【ループ終了】 class【クラス定義】 c
概要 matplotlibで色分けしてグラフを表示したい時に、色をたくさん取ってくる方法について調べる。 バージョン情報 matplotlib==3.0.3 8色まで matplotlib.colors.BASE_COLORSで8色が出せる。用意されている色はb, g, r, c, m, y, k, w import matplotlib from matplotlib import pylab as plt matplotlib.colors.BASE_COLORS #=> {'b': (0, 0, 1), #=> 'g': (0, 0.5, 0), #=> 'r': (1, 0, 0), #=> 'c': (0, 0.75, 0.75), #=> 'm': (0.75, 0, 0.75), #=> 'y': (0.75, 0.75, 0), #=> 'k': (0, 0, 0), #=
グラフのある特定の位置を明示するために、Axes.annotate() を使って注釈 (annotation)と矢印 (arrow) を表示することができます。まずは簡単な例を示します。 # MATPLOTLIB_ANNOTATE # In[1] import numpy as np import matplotlib.pyplot as plt # FigureとAxesを描画 fig, ax = plt.subplots(figsize=(5, 5)) ax.grid() ax.set_xlim(0, 10) ax.set_ylim(0, 10) # 指定した位置に注釈(annotation)を入れる ax.annotate("point A", xy=(4, 4), size=15, color="red") plt.show() このように、Axes.annotate() は注釈テ
xkcdとは 世界一で最も人気のあるウェブ漫画の一つです xkcd: Code Quality 3 ランダル・マンローが2005年9月に開設 皮肉や風刺が得意。理系ネタが結構多い。 現在は週3回更新されている キャラやフォントが特徴的 これとか皮肉が効いてていいですね!好きです A : 寝ないの? B : 寝られないんだ、大事なことがある A : なによ? B : 誰かがインターネットでボロを出してるんだ xkcd: Duty Calls 実はmatplotlibを使えば、グラフをxkcd風に仕立てられます。しかもたった一行で!今回はその紹介をします xkcdとは matplotlibで、xkcd requirement 使い方 MatplotlibのHPもxkcd風に サンプルを見てみる 3D 円グラフ 最後に matplotlibで、xkcd requirement matplotli
HDF5の読み込みは次回にまわします。ごめんね。 今回は、個人的にむっちゃ苦労したお話について、メモ。 目的は、 Scientific notationの指数を10^{n}にする Scientific notationの指数の文字をでかくする です。 まずは状況設定 import numpy as np import matplotlib.pyplot as plt x = np.arange(1,1000,1) y = 10e-7*x fig, ax=plt.subplots(figsize=(5*1.618,5)) ax.plot(x,y) これ、y軸の目盛り・・・指数表記したくない?したいよね? というわけで、こいつをうまく指数表記する方法をここでは述べます。 結論 以下のようにやれ。 import numpy as np import matplotlib.pyplot as pl
Legend guide¶ This legend guide is an extension of the documentation available at legend() - please ensure you are familiar with contents of that documentation before proceeding with this guide. This guide makes use of some common terms, which are documented here for clarity: legend entry A legend is made up of one or more legend entries. An entry is made up of exactly one key and one label. legen
"""Examples illustrating the use of plt.subplots(). This function creates a figure and a grid of subplots with a single call, while providing reasonable control over how the individual plots are created. For very refined tuning of subplot creation, you can still use add_subplot() directly on a new figure. """ import matplotlib.pyplot as plt import numpy as np # Simple data to display in various fo
You are reading an old version of the documentation (v2.0.2). For the latest version see https://matplotlib.org/stable/
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く