Sfoglia il codice sorgente

Changed xkcd example to show a the plot instead of saving an image.

Benno Evers 7 anni fa
parent
commit
12923d7039
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/xkcd.cpp

+ 1 - 1
examples/xkcd.cpp

@@ -16,6 +16,6 @@ int main() {
     plt::xkcd();
     plt::plot(t, x);
     plt::title("AN ORDINARY SIN WAVE");
-    plt::save("xkcd.png");
+    plt::show();
 }