Plotting 0.3 on ListPlot with Variable Domain

Click For Summary
SUMMARY

The discussion centers on plotting the value 0.3 using Mathematica's ListPlot function. The user initially sets the variable 'domain' to -10 and successfully plots the point, but when changing 'domain' to 0, the point disappears from the plot. The confusion arises from the terminology, as the user mistakenly refers to 'domain' instead of 'range'. The correct understanding of the range settings in ListPlot is crucial for visualizing the data accurately.

PREREQUISITES
  • Familiarity with Mathematica 11.3
  • Understanding of ListPlot function and its parameters
  • Knowledge of plotting ranges and their impact on data visibility
  • Basic concepts of data visualization
NEXT STEPS
  • Explore the documentation for Mathematica's ListPlot function
  • Learn about setting plot ranges in Mathematica
  • Investigate how different plot markers affect data representation
  • Practice plotting multiple data points with varying ranges
USEFUL FOR

This discussion is beneficial for Mathematica users, data analysts, and anyone interested in effective data visualization techniques using 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
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K