cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Is there a way to fill color for a triangle ?

lvl107
20-Turquoise

Is there a way to fill color for a triangle ?

   Hello Everyone.

   From :

Fill I .PNG

   Is there a way to fill color for a triangle ?

   Many thanks for your time and help in advance.

       Regards.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:lvl107)

There is no built-in way to fill the area, but you can quickly write your own hatch function to create a number of vertical hatch lines between two functions:

Werner_E_1-1600548416937.png

MC15 sheet attached

BTW, I'm a bit irritated because I am not able to resize the plot region, making it smaller. Not sure why!?

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:lvl107)

There is no built-in way to fill the area, but you can quickly write your own hatch function to create a number of vertical hatch lines between two functions:

Werner_E_1-1600548416937.png

MC15 sheet attached

BTW, I'm a bit irritated because I am not able to resize the plot region, making it smaller. Not sure why!?

Thanks Werner!

 

hatch for Express:

FredKohlhepp_0-1600775253259.png

(Note that the first two arguments must be labelled as functions.

 

You may consider renaming your function to hatch_aux(f,g,...) and define

hatch(f,g,x1,x2,n):=hatch_aux(f,g,x1,x2,n,n)

 

That way you avoid having to provide the number of lines (n) twice.

Good point!  More "elegant."

Announcements

Top Tags