Message Boards Message Boards

How can I convert the amplitude of sin(x)+1 to grayscale and plot?

Posted 5 months ago

How can I convert the amplitude of sin(x)+1 to grayscale and plot?

Attachment

Attachments:
POSTED BY: Haiyin Sun
2 Replies
Posted 5 months ago

See if you can adjust this to get closer to what you want

DensityPlot[Sin[x]+1,{x,0,3Pi},{y,0,Pi},ColorFunction->GrayLevel,PlotPoints->100]
POSTED BY: Bill Nelson

Yes, it works now. Thank you Bill for helping.

POSTED BY: Haiyin Sun
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract