3

I have a function with two independent variables:

SNR[t_, f_] := 20 Log10[1/(2 Pi f t)]

And I have a list for "t"

tlist = {0.1*10^-12, 1*10^-12, 10*10^-12, 100*10^-12, 1*10^-9};

Then I use the code below to plot the functions:

LogLinearPlot[Table[SNR[t, f], {t, tlist}], {f, 1*10^6, 100*10^6}, Frame -> True, GridLines -> Automatic, FrameLabel -> {"f(Hz)", "SNR(dB)"}, PlotLabel -> "SNR vs f for Different Jitter Values"]

The lines are plotted, but all the lines are in the same color. Is there a method to make the lines are drawn with different colors?

diverger
  • 407
  • 1
  • 4
  • 12

1 Answers1

2

This works

SNR[t_, f_] := 20 Log10[1/(2 Pi f t)]
tlist = {0.1*10^-12, 1*10^-12, 10*10^-12, 100*10^-12, 1*10^-9};
LogLinearPlot[Evaluate@Table[SNR[t, f], {t, tlist}], {f, 1*10^6, 100*10^6},  Frame -> True, GridLines -> Automatic,  FrameLabel -> {"f(Hz)", "SNR(dB)"}, PlotLabel -> "SNR vs f for Different Jitter Values"]

Check Wolfram announcement on PlotThemes here

And R
  • 472
  • 3
  • 9