Consider the following graphical representation of the No Free Lunch Theorem found from Google Image:

What I'd like to do (if possible) is convert this into a Mathematica Plot so that I can (i) add an extra function to it and (ii) adjust the plot labels. Does Wolfram technology make this possible (through some sort of "Image -> Plot" function?)?

  • $\begingroup$ You might be interested in the Wolfram blog 2012/10/05 xkcd-sytle diagrams article. $\endgroup$
    – Somos
    Jul 13, 2019 at 22:03
  • 1
    $\begingroup$ Sounds like the OP is asking if he can convert a JPEG, PDF,BMP or other graphic file into Mathematica plot data. If you plot a simple graph like myPlot=Plot[x,{x,0,1}] and then do a ?myPlot, you obtain the format of Mathematica's graphics. It contains lines, points, colors, other data to generate the plot. I do not know if there is any software that can for example convert a PDF file to Mathematica's graphics format. Maybe others know. $\endgroup$
    – Dominic
    Jul 13, 2019 at 22:56
  • 1
    $\begingroup$ Take a look at this. $\endgroup$ Jul 14, 2019 at 0:30

1 Answer 1

f2 = 1/((x - 3)^2 + 1/7);
f1 = 1 + 1/2 Sin[x] + 1/5 Sin[2 x] + 1/7 Sin[3 x];
g = Plot[{f1, f2}, {x, 0, 12}, PlotRange -> All, FrameTicks -> None, 
  Axes -> False, Frame -> {{ True, False}, {True, False}}, 
  FrameLabel -> {"Performance", "Type"}, FrameStyle -> 18, 
  PlotTheme -> {"Monochrome", "BoldColor"}, 
  Epilog -> {Black, Dashing[{0.05}], Line[{{0, 1}, {12, 1}}]}]

This yields

enter image description here enter image description here

using a magnificent xkcdConvert function of Simon Woods


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.