Skip to content

Instantly share code, notes, and snippets.

@gusl
gusl / gist:5274774
Created Mar 30, 2013
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…
View gist:5274774
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") )