Skip to content

Instantly share code, notes, and snippets.

@gusl
Created March 30, 2013 01:00
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 gusl/5274774 to your computer and use it in GitHub Desktop.
Save gusl/5274774 to your computer and use it in GitHub Desktop.
I am getting a bunch of errors when I call file. (process:29144): GLib-GObject-CRITICAL **: gpointer g_object_ref(gpointer): assertion `G_IS_OBJECT (object)' failed (process:29144): GLib-GObject-CRITICAL **: gpointer g_object_get_qdata(GObject *, GQuark): assertion `G_IS_OBJECT (object)' failed (process:29144): GLib-GObject-CRITICAL **: void g_o…
using Winston
x = linspace( 0, 3pi, 100 )
c = cos(x)
s = sin(x)
p = FramedPlot()
setattr(p, "title", "title!")
setattr(p, "xlabel", "\Sigma x^2_i")
setattr(p, "ylabel", "\Theta_i")
add(p, FillBetween(x, c, x, s) )
add(p, Curve(x, c, "color", "red") )
add(p, Curve(x, s, "color", "blue") )
file(p, "example1.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment