#5049: show(mathematica('2/3')) doesn't work
------------------------+---------------------------------------------------
 Reporter:  was         |        Owner:  was     
     Type:  defect      |       Status:  new     
 Priority:  major       |    Milestone:  sage-3.3
Component:  interfaces  |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by mhansen):

 This is because the show method is written to deal only with images:

 {{{
     def show(self, filename=None, ImageSize=600):
         """
         Show a mathematica plot in the Sage notebook.

         EXAMPLES:
             sage: P = mathematica('Plot[Sin[x],{x,-2Pi,4Pi}]')   #
 optional - mathematica
             sage: show(P)                                        #
 optional - mathematica
             sage: P.show(ImageSize=800)                          #
 optional - mathematica
         """
         P = self._check_valid()
         if filename is None:
             filename = graphics_filename()
         orig_dir = P.eval('Directory[]').strip()
         P.chdir(os.path.abspath("."))
         s = 'Export["%s", %s, ImageSize->%s]'%(filename, self.name(),
 ImageSize)
         P.eval(s)
         P.chdir(orig_dir)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5049#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to