Forgot password?
 Register account
View 1944|Reply 4

用Mathematica画房子

[Copy link]

6

Threads

7

Posts

73

Credits

Credits
73

Show all posts

hjnk900 Posted 2016-1-27 11:42 |Read mode
RT...房子要包含烟囱、窗户和门  
有谁会画吗?比如下图的这些样式,可否给一些代码的格式提示
Snip20160127_14.png

13

Threads

901

Posts

110K

Credits

Credits
12272

Show all posts

色k Posted 2016-1-27 12:29
这是吃饱了撑的节奏么

6

Threads

7

Posts

73

Credits

Credits
73

Show all posts

 Author| hjnk900 Posted 2016-1-27 13:13
回复 2# 色k


    我们老师吃饱了撑的...

768

Threads

4685

Posts

310K

Credits

Credits
35004

Show all posts

isee Posted 2016-1-29 17:34
看来是作业,熟悉应用的。。。

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2023-2-27 05:19
  1. house = Graphics[{(*main house*)Brown, Rectangle[{0, 0}, {5, 4}],
  2.    (*chimneys*)Blue, Rectangle[{1, 4}, {1.5, 5}], Rectangle[{3.5, 4}, {4, 5}],
  3.    (*roof*)Red, Triangle[{{0, 4}, {2.5, 5}, {5, 4}}],
  4.    (*windows*)LightBlue, Rectangle[{0.5, 1.5}, {1.5, 2.5}], Rectangle[{3, 1.5}, {4, 2.5}],
  5.    (*door*)Green, Rectangle[{2, 0}, {2.75, 1}]},
  6.    (*set options for house*)PlotRange -> {{-0.5, 5.5}, {-0.5, 5.5}}, AspectRatio -> Automatic, ImageSize -> Medium, Axes -> None]
Copy the Code
New Text Document.gif

Mobile version|Discuz Math Forum

2025-6-5 01:22 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit