Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.3K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How can I plot a graph of data, stored in xls/ods external file?

Posted 12 years ago
Attachments:
POSTED BY: Ivan Gumenyuk
2 Replies
Posted 12 years ago

Wonderful, ToExpression is what I needed. It's rather hard to me use this language, as I'm a doctor)) Got something like this: enter image description here

enter image description here

POSTED BY: Ivan Gumenyuk

Hi,

would this work:

 ListLinePlot[ToExpression[Transplant], Frame -> True, 
 FrameStyle -> Directive[GrayLevel[ 0.75]], 
 FrameLabel -> {"(row index)", "(in millivolts)"}, 
 FrameTicksStyle -> Directive[FontSize -> 17, FontFamily -> "TimesNewRoman", GrayLevel[0.35]], ImageSize -> Large, 
 LabelStyle -> Directive[FontSize -> 17, Gray, FontFamily -> "TimesNewRoman"], 
 AspectRatio -> 0.45, GridLines -> Automatic, 
 GridLinesStyle -> Directive[LightGray], 
 PlotStyle -> Directive[Thickness[0.0032]],
 PlotRange -> {All, {-1500, 1500}}, 
 PlotLegends -> SwatchLegend[{"Transplant"}, LegendMarkerSize -> 13, 
 LabelStyle -> 
 Directive[FontSize -> 17, FontFamily -> "TimesNewRoman", Gray]]]

I used your import functions. Note that I used the function ToExpression, because the way you import the data makes Mathematica believe that the entries are strings. This is why you see the quotation marks in the output of your array.

enter image description here

Cheers, Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard