I'm attempting to put a point onto my Plot but need help with the point sizing and using the Graphics function. I'm not sure I'm going about this correctly, but I have been able to produce the lines that I'm looking for using the Line function inside the epilog option. I'm confused about how Mathematica handles marking up Plots. I also want to call out my intersection of the two lines and need help.
Here is what I'm looking for:
- Callout point of intersection with the (x,y) value at that point.
- Adjust the size of the point of intersection
- Add arrows to indicate the direction of the slope
I need clarification about how Mathematica combines its graphics rendering with its plots. I can use Line to place a line inside my Plot but then using Graphics to add other stuff causes errors. What is the proper way to understand how these are rendered so I can add markup to my Plots?
Here is the code with errors:
Plot[{2.13 + 0.7 (-7.4 + x), 2.13 + 0.9 (-8.9 + x)}, {x, 6, 20},
Epilog -> {
{Red, Line[{{14.15, 0}, {14.15, 6.855}}]},
{Red, Line[{{6, 6.855}, {14.15, 6.855}}]},
{Blue, Graphics[PointSize[0.1], Point[{14.15, 6.855}]]}},
PlotStyle -> Thick, PlotLabel -> "Supply & Demand",
AxesLabel -> {"Bushels", "Price"},
PlotLabels -> {"Demand", "Supply"}]
Here is the working Code:
Plot[{2.13 + 0.7 (-7.4 + x), 2.13 + 0.9 (-8.9 + x)},{x, 6, 20},
Epilog -> {
{Red, Line[{{14.15, 0}, {14.15, 6.855}}]},
{Red, Line[{{6, 6.855}, {14.15, 6.855}}]},
{Blue,Point[{14.15,6.855}]}},
PlotStyle -> Thick, PlotLabel -> "Supply & Demand",
AxesLabel -> {"Bushels", "Price"},
PlotLabels -> {"Demand", "Supply"}]