Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14645 > unrolled thread

Re: How to extract from list

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-05-27 08:19 +0000
Last post2013-05-27 08:19 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to extract from list Bob Hanlon <hanlonr357@gmail.com> - 2013-05-27 08:19 +0000

#14645 — Re: How to extract from list

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-05-27 08:19 +0000
SubjectRe: How to extract from list
Message-ID<knv4v2$j80$1@smc.vnet.net>
data = {{1.8, 13.8, 34, 134}, {1.9, 6.4, 44, 94},
   {2.0, 2.7, 62, 52}, {54., 6.8, 250, 189}};


f[x_List] := {x[[1]], #} & /@ Rest[x];


data2 = Reverse[SortBy[
    Transpose[f /@ data], #[[-1, -1]] &]];
(* Order by decsending magnitude of last point *)


ListLinePlot[data2,
 PlotMarkers -> Automatic,
 PlotLegends ->
  {"Resistance", "Reactance", "SWR"}]


ListLogLinearPlot[data2,
 PlotMarkers -> Automatic,
 Joined -> True,
 PlotLegends ->
  {"Resistance", "Reactance", "SWR"}]


ListLogLogPlot[data2,
 PlotMarkers -> Automatic,
 Joined -> True,
 PlotLegends ->
  {"Resistance", "Reactance", "SWR"}]



Bob Hanlon




On Sun, May 26, 2013 at 5:07 AM, James Fisher <jlfisher@imt.net> wrote:

> I have a list/array as follows::
>
> {{1.8, 13.8, 34, 134}, {1.9, 6.4, 44, 94}, {2.0, 2.7, 62,
> 52},..........,{54., 6.8, 250, 189}}
>
> The first entry is a frequency ex 1.8 MHz
> The other values are SWR[13.8], Resistance[34], Reactance[134].
>
> I want to plot the last three values on three line graphs in different
> colors using the first value [freq] at the bottom [as the dependent].
>
> As you can see the freq goes from 1.8 to 54 Mhz.
>
> How can I plot this list/array [three lines] please ?
>
> Thanks
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web