On Tue, Apr 14, 2015 at 10:38 AM, Volker Braun <
vbrau...@gmail.com> wrote:
> I'm happy to expose all kinds of options to show() and save() with the
> exception that:
> * save requires a filename, and derives the output type from the filename
> * show does not accept a filename, but has another way to control output
> type if there is more than one (the viewer=... argument in 3d-plots)
> The bug in #18176 was precisely that save did not support some options that
> show did. The only difference in our approaches to fix it was that I didn't
> have the time to add extra options to save.
>
> PS: I'm not terribly happy with using viewer=... in 2d/(2+1)d plots, a
> better keyword should be found IMHO. Though thats not really on topic.
When I'm actually *working* and using thigns, I like actually using
the following horrible approach:
show(g, svg=True)
show(g, png=True)
show(g, threejs=True)
where svg=True means "use svg if possible", etc.
From an implementation perspective (and maybe others) it is ugly.
But from a pure usability perspective it is nice, since you only have
to remember *one* thing, the name of renderer and nothing else (e.g.,
is it viewer= or renderer= or what?).
If one did
show(g, svg=True, png=True)
for some reason, there would be some arbitrary and defined rule for
breaking ties.
-- William
>
>
> On Tuesday, April 14, 2015 at 5:54:22 PM UTC+2,
martin....@gmx.net wrote:
>>
>> Hi!
>>
>> This is a quick poll, triggered by comment 50 of ticket 7298 and also
>> comment 17 of ticket 18176. How would you like to create and save an
>> animation using Sage. Options (perhaps presented in a slightly biased way):
>>
>> 1. Create the animation object, then call the "save" method without any
>> extra arguments, hope to see a download link in the browser or a file system
>> path in the console, and hope the file looks OK using default settings.
>> 2. Start as above, then open the file to view it, and begin adding or
>> changing arguments to "save" till it looks OK. Which means re-downloading
>> from browser, and / or re-loading in your viewer app if it doesn't do so
>> automatically.
>> 3. Use "show" instead of "save" for a preview, tweak arguments to that
>> till I'm satisfied, then change the "show" to a "save".
>> 4. Use "show", tweak till satisfied, then right-click in browser to save,
>> or use "Save (copy) as..." in viewer application.
>> 5. ... (feel free to add further options you'd prefer over those presented
>> here.)
>>
>> The reason I'm asking this is because I feel that most people would prefer
>> to follow approach 3 and 4. Which means everything you can do with "save"
>> should be possible with "show" as well, with the possible exception of the
>> target file name. In the comments pointed out above, Volker Braun was of a
>> different opinion, arguing that "show" should simply show stuff, without too
>> much "confusing" flexibility, while all the power to tweak stuff should only
>> be available for "save". His rationale being the name of the method: if you
>> want to save things at the end of the day, you should be calling "save" not
>> "show".
>>
>> I'd like to hear your input about which method you'd prefer.
>>
>> I know I'm all for 4. and have been using that very often. If it's just
>> me, I'll accept that, but somehow I feel that this usage scenario is so
>> obvious that I'd be very surprised to be the only one employing it.
>> Particularly since I've asked some colleagues and they's use the same
>> approach if given these alternatives. @Volker, if you think I misrepresented
>> some of the options, it happened without ill intentions. Please feel free to
>> clarify.
>>
>> Greetings,
>> Martin
>