TransWikia.com

Axis getting swapped while plotting

Mathematica Asked on July 30, 2021

I am havings data set with 6 coloums and I am trying to plot two coloumns out of 6, but my axis are getting swapped.

This is what I am trying

Clear [Data]
$TextStyle = {FontWeight -> "Bold", Font -> "Arial", FontSize [RightArrow] 12};
Data = Transpose[Import["21.csv"]];
Ampvsf0 = Transpose[Union [{Data[[1]]}, {Data[[2]]}]]
graph = ListPlot[Ampvsf0]

Here is the data file 21.csv

One Answer

Clear[Data]

$TextStyle = {FontWeight -> "Bold", Font -> "Arial", FontSize -> 12};

Import the data without transposing it.

Data = Import["/Users/roberthanlon/Downloads/21.csv"];

Extract the first two columns

Ampvsf0 = Data[[All, 1 ;; 2]] // Union;

graph = ListPlot[Ampvsf0]

enter image description here

Correct answer by Bob Hanlon on July 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP