From ec517b4684ca400a44e13ef3cea4bf0a7ef3019f Mon Sep 17 00:00:00 2001 From: Ben Jones Date: Wed, 28 Oct 2015 20:30:37 +0000 Subject: [PATCH 1/2] Add a description for PolarPlot --- mathics/builtin/plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mathics/builtin/plot.py b/mathics/builtin/plot.py index 3730a87821..dd51d04609 100644 --- a/mathics/builtin/plot.py +++ b/mathics/builtin/plot.py @@ -1196,7 +1196,8 @@ class PolarPlot(_Plot): """
'PolarPlot[$r$, {$t$, $tmin$, $tmax$}]' -
plots blah +
creates a polar plot of $r$ with angle $t$ ranging from + $tmin$ to $tmax$.
>> PolarPlot[Cos[5t], {t, 0, Pi}] @@ -1204,7 +1205,7 @@ class PolarPlot(_Plot): >> PolarPlot[{1, 1 + Sin[20 t] / 5}, {t, 0, 2 Pi}] = -Graphics- - """ + """ def get_functions_param(self, functions): if functions.has_form('List', None): From 6757d1481afcb380c97d95290aeab5f20ada58e2 Mon Sep 17 00:00:00 2001 From: Ben Jones Date: Mon, 16 Nov 2015 22:59:58 +0000 Subject: [PATCH 2/2] Change PolarPlot's default AspectRatio to 1 --- mathics/builtin/plot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mathics/builtin/plot.py b/mathics/builtin/plot.py index dd51d04609..17ee972302 100644 --- a/mathics/builtin/plot.py +++ b/mathics/builtin/plot.py @@ -1207,6 +1207,11 @@ class PolarPlot(_Plot): = -Graphics- """ + options = _Plot.options.copy() + options.update({ + 'AspectRatio': '1', + }) + def get_functions_param(self, functions): if functions.has_form('List', None): functions = functions.leaves