<jupyter_start><jupyter_text>Matplotlibのオプション一覧よく使う線のスタイルやマーカー，カラー等のオプションをまとめました．<jupyter_code>import matplotlib.pyplot as plt
import numpy as np
# データ
x = np.arange(0, 2*np.pi, 0.5)
y = [np.sin(x+i) for i in np.arange(0, np.pi, np.pi/6)]<jupyter_output><empty_output><jupyter_text>linestyle`linestlle = 名前 or 記号 or タプル`で指定する．単純な線種は`"solid"`， `"dotted"`， `"dashed"`，`"dashdot"`の4種類．  名前以外にも記号で指定できる．`'_'`, `':'`，`'__'`，`'_.'`と書いても良い．  公式ページ : [https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html](https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html)<jupyter_code>plt.plot(x, y[0], linestyle='solid', label='solid')  # same as '_'
plt.plot(x, y[1], linestyle='dotted', label='dotted')  # same as ':'
plt.plot(x, y[2], linestyle='dashed', label='dashed')  # same as '__'
plt.plot(x, y[3], linestyle='dashdot', label='dashdot')  # same as '_.'
plt.legend()<jupyter_output><empty_output><jupyter_text>marker多すぎるので使ったことのあるものだけ紹介．  公式ページ : [https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.htmlunfilled-markers](https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.htmlunfilled-markers)<jupyter_code>plt.plot(x, y[0], marker='.', label='.', markersize=11)
plt.plot(x, y[1], marker='+', label='+', markersize=11)
plt.plot(x, y[2], marker='o', label='o', markersize=11)
plt.plot(x, y[3], marker='^', label='^', markersize=11)
plt.plot(x, y[4], marker='s', label='s', markersize=11)
plt.legend()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20526315789473684, 'fraction_numerical': 0.017105263157894738, 'mean_word_length': 8.38888888888889, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '322580', 'license': 'MIT', 'n_tokens_mistral': 739, 'n_tokens_neox': 701, 'n_words': 83, 'path': 'graph/python_src/option.ipynb', 'repo_name': 'YoshimitsuMatsutaIe/abc_2022', 'size': '1520'}