Forgot password?
 Create new account
View 1784|Reply 4

用Mathematica画房子

[Copy link]

6

Threads

7

Posts

73

Credits

Credits
73

Show all posts

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

15

Threads

948

Posts

110K

Credits

Credits
12412

Show all posts

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

6

Threads

7

Posts

73

Credits

Credits
73

Show all posts

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


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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

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

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-2-27 05:19:26
  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|Leisure Math Forum

2025-4-20 22:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list