Message Boards Message Boards

0
|
3406 Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

[?] Plot a Sin function with the following style?

Posted 5 years ago

enter image description here

How to draw a graph as shown for the function y = Sin [x]? I have difficulties and hope everyone will help me.

4 Replies

What have you tried thus far?

POSTED BY: Daniel Lichtblau
Posted 5 years ago
Show[
 Plot[Sin[x], {x, 0, 10}, GridLines -> Automatic, PlotRange -> {{0, 10}, {-1, 1}}, PlotStyle -> Black],
 ListPlot[Table[{x, Sin[x]}, {x, 0, 10, .3}], PlotStyle -> {PointSize[.02], Black}]
]

enter image description here

POSTED BY: Rohit Namjoshi

Almost identical:

Plot[Sin[x], {x, 0, 10}, Mesh -> 30, PlotStyle -> Black, 
 MeshStyle -> Directive[PointSize[Large], Black], 
 GridLines -> Automatic, Frame -> True, Axes -> {False, True}]

Regards MI.

POSTED BY: Mariusz Iwaniuk

I can't plot it with line style as showed

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