是否可以在Matlab绘图功能中更改标记? [英] Is it possible to change markers in Matlab plot function?

查看:120
本文介绍了是否可以在Matlab绘图功能中更改标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用matlab绘图功能来创建绘图.但是,可用的标记是有限的.例如:

I am trying to use matlab plot function to create a plot. However, the markers available are limited. For example:

plot(x,y,'-o')

将使用圆形标记进行绘制.

will plot with circle markers.

但是,如果我想要带有箭头符号或字母的标记,那是不可能的.有人知道这样做吗?谢谢!

However, if I want a marker with the arrow symbol or a letter, this is not possible. Does anyone know of any way to do this? Thanks!

推荐答案

简短答案:如果要使用自定义标记,可以方便地在其他绘图软件(例如

Short answer : If you want custom markers, its convenient to make the plot in some other plotting software, like tikz.

长答案:

  1. 如果您想要一个简单的文本标记,例如字母"A",则可能如下(

  2. 如果您想要一个更复杂的标记,那么我在stackoverflow上的此处找到了一个示例.

  3. If you want a more complicated marker, then I found an example here on stackoverflow.

    这篇关于是否可以在Matlab绘图功能中更改标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆