필터 지우기
필터 지우기

Thick border for a plot

조회 수: 221 (최근 30일)
CS
CS 2020년 11월 20일
답변: CS 2020년 11월 20일
I have a plot like this
As can be seen, there is no border on the right side.
My questions:
1- Why?
2- How to get it solved?
3- How to make the axes thicker (how to change the linewidth of the axes)?
4- How to make a thick border around the plot (the line indicated in red shape)?
Thanks for your help!

채택된 답변

VBBV
VBBV 2020년 11월 20일
편집: VBBV 2020년 11월 20일
box on
ax = gca
ax.LineWidth = 6
  댓글 수: 2
CS
CS 2020년 11월 20일
Worked. Thanks!
CS
CS 2020년 11월 20일
However, if we are using the
grid on
all the grid lines would also get thicker. How can I only change the width of the border?
How can I have the grid lines as what they are and change the width of the border?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

CS
CS 2020년 11월 20일
Also, how can I increase the marker size in the legend?
I found somthing realated to icons, but when I apply it, the legend title disappears. How can I have both legend title and enlarged legend marker size?
Thanks!

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by