使用网格绘制数据
当您使用meshgrid绘制数据时(使用meshgrid本身而不是其他绘图功能之一),如何将颜色更改为灰度或黑白?另外,如何摆脱图像的“网格”外观?
When you use meshgrid to plot data (using meshgrid itself not one of the other plotting functions), how do you change the color to grayscale or black and white? Also, how do you get rid of the "meshy" look of the image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要将颜色更改为灰度,您可以使用:
至于“网格”外观,我不能 100% 确定您的意思;但我假设你创建的任何东西看起来都是像素化的?如果是这样,请减小网格间距:
从
到
To change the colour to greyscale you can use:
As for the 'meshy' look, I'm not 100% sure what you mean; but I'm assuming whatever you've created is looking pixelated? If so, decrease your mesh spacing:
From
To
我不知道它是否适用于网格网格,但如果您使用 surf,您可以指定
摆脱“网格”外观。
I don't know if it works for meshgrid, but if you use surf, you can specify
to get rid of the 'meshy' look.