Permalink
Browse files

adding pgqwin function

  • Loading branch information...
1 parent 64e4a5b commit 1c9c8ad42f9fdf0b9e255d5bd023f489500b0083 @mindriot101 committed May 22, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 ppgplot.c
View
@@ -326,6 +326,18 @@ PYF(pgqinf)
}
/*
+ * Added by SRW
+ * pgqwin
+ */
+PYF(pgqwin)
+{
+ float x1, x2, y1, y2;
+ cpgqwin(&x1, &x2, &y1, &y2);
+
+ return Py_BuildValue("ffff", x1, x2, y1, y2);
+}
+
+/*
pgpoly(x, y : array)
*/
PYF(pgpoly)
@@ -2116,6 +2128,7 @@ PYF(pgconl_s)
/***************************************************************************/
static PyMethodDef PpgMethods[] = {
+ {"pgqwin", pgqwin, 1}, /* Added by SRW */
{"pgarro", pgarro, 1},
{"pgask", pgask,1},
{"pgband", pgband, 1},

0 comments on commit 1c9c8ad

Please sign in to comment.