Mathematica Plotting 0.3 on ListPlot with Variable Domain

Click For Summary
In Mathematica, when plotting a constant value like 0.3 using ListPlot, changing the domain affects visibility due to the specified PlotRange. The user initially set the domain to -10 and successfully displayed the plot, but upon changing it to 0, the value became invisible. Clarification revealed that the user meant to refer to the range instead of the domain. The discussion highlights the importance of correctly configuring PlotRange to ensure the desired values are visible in the plot. Adjusting the PlotRange settings can resolve the issue of visibility in ListPlot.
member 428835
Hi PF!

I type the following into Mathematica:

domain = -10;
ListPlot[{0.3}, PlotMarkers -> {{"\[LongDash]", Large}},
PlotRange -> {{0, 5.5}, {-10, 200}}]

And notice we see the plot 0.3. But, now let domain = 0. Notice now we can't see 0.3. Does anyone know how to fix this?
 
Physics news on Phys.org
I don't see why the value of domain would play a role here. I get the same result in both cases.
 
DrClaude said:
I don't see why the value of domain would play a role here. I get the same result in both cases.
Are you using 11.3? Also, I misspoke: I said domain but I meant range.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 18 ·
Replies
18
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K