Mathematica: DiscretePlot type plot with x values from a list

Click For Summary
SUMMARY

The discussion focuses on creating specific visualizations in Mathematica using the ListPlot and ListPointPlot3D functions. The user successfully utilized ListPlot with the Filling->Axis option to create vertical lines with dots at specified x-positions and heights from the data set {{1.2, 3.5}, {2.3, 4.2}, {5.5, 6.7}}. However, the user encountered limitations with ListPointPlot3D for plotting complex numbers, requiring data manipulation to achieve the desired output. The conclusion indicates that ListPointPlot3D may not be suitable for this type of visualization.

PREREQUISITES
  • Familiarity with Mathematica plotting functions
  • Understanding of complex numbers and their representation in plots
  • Knowledge of data manipulation techniques in Mathematica
  • Experience with ListPlot and ListPointPlot3D functionalities
NEXT STEPS
  • Explore advanced features of ListPlot in Mathematica
  • Research alternative plotting functions for complex data visualization in Mathematica
  • Learn about data manipulation techniques in Mathematica for preparing datasets
  • Investigate the use of Graphics and Graphics3D for custom visualizations
USEFUL FOR

Mathematica users, data scientists, and anyone interested in advanced plotting techniques for complex data visualizations.

Swamp Thing
Insights Author
Messages
1,048
Reaction score
799
TL;DR
Is it possible to get something that looks like DiscretePlot, but taking both the X *and* Y values from a list?
I would like vertical lines with dots at the top of them, with the x-positions and heights coming from
{{1.2, 3.5}, {2.3, 4.2}, {5.5, 6.7}} for example.
 
Physics news on Phys.org
Try ListPlot with the option Filling->Axis
 
  • Like
Likes   Reactions: Swamp Thing and DrClaude
That's exactly what I needed, thanks.

And another question, if I may: I have used ListPointPlot3D to show some complex numbers as a function of some ##t## that goes along the length of the box:
1585187196967.png


However, the Filling->Axis doesn't help here because it sends each line downwards rather than towards the ##t## axis.

I had to doctor the data and insert ##0 + i0## before and after each complex number to get the above plot -- so ListPointPlot3D is probably the wrong type of plot for this.

What is the best way to do this?
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K