如何在 Mathematica 中对绘图进行着色 [英] How to shade a plot in Mathematica

查看:47
本文介绍了如何在 Mathematica 中对绘图进行着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成如下图

即使我可以完成框架,我也不知道如何生成阴影.我想知道在 Mathematica 中为绘图中的某些区域着色的一般方法.请帮忙.谢谢.

I am not sure how to generate a shading even though I can get the frame done. I'd like to know the general approach to shade certain areas in a plot in Mathematica. Please help. Thank you.

推荐答案

也许您正在寻找 RegionPlot?

RegionPlot[(-1 + x)^2 + (-1 + y)^2 < 1 && 
 x^2 + (-1 + y)^2 < 1 && (-1 + x)^2 + y^2 < 1 && x^2 + y^2 < 1, 
 {x, 0, 1}, {y, 0, 1}]

这篇关于如何在 Mathematica 中对绘图进行着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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