grid線の太さのかえ方

grid線の太さを変更するにはどのようなプログラムを書けばいいですか? ax.LineWidth = 1.5と書きましたが、エラーが出ました。

 Respuesta aceptada

michio
michio el 17 de Jul. de 2018

0 votos

grid線の色の濃さ(GridAlpha) や線種(GridLineStyle)を変更する機能は グリッド ラインの外観の変更 で紹介しておりますが、残念ながら現時点では grid 線の太さを変更する機能はありません。
File Exchange に grid2 という関数が公開されており、こちらを使うと太さも編集可能の様です。

Más respuestas (1)

Toshia M
Toshia M el 17 de Mzo. de 2023

0 votos

There is a new feature in R2023a for changing the grid line width. For more information, see this solution: https://www.mathworks.com/matlabcentral/answers/157863-change-grid-line-width

Productos

Versión

R2017a

Preguntada:

N/A
el 17 de Jul. de 2018

Respondida:

el 17 de Mzo. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!