Skip to content

Instantly share code, notes, and snippets.

@janodev
Created March 5, 2012 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janodev/1980044 to your computer and use it in GitHub Desktop.
Save janodev/1980044 to your computer and use it in GitHub Desktop.
O(n) performance types
Needs["PlotLegends`"]
Plot[{1, Log[n], n, n*Log[n], n^2, n!, 2^n}, {n, 0, 40},
PlotRange -> {0, 200}, PlotLabel -> "O(n) Performance types",
PlotLegend -> {"1", "Log[n]", "n", "n*Log[n]", "n^2", "n!", "2^n"},
LegendShadow -> None, LegendBorder -> None,
LegendPosition -> {0.9, -0.4}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment