Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'plenty': 0.07; 'subject:How': 0.09; 'received:internal': 0.09; 'stack': 0.13; 'thu,': 0.15; 'formats.': 0.16; 'formula': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'sebastian': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.16; 'python?': 0.18; 'module': 0.23; 'header:In-Reply-To:1': 0.24; 'mathematical': 0.27; 'matplotlib': 0.29; 'subset': 0.29; 'similar': 0.32; 'google': 0.34; 'to:addr :python-list': 0.35; 'url:org': 0.36; 'there': 0.36; 'should': 0.37; 'received:10': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.39; 'resources': 0.39; 'called': 0.40; 'learn': 0.60; 'your': 0.60; 'from:no real name:2**0': 0.61; "you've": 0.61; 'header:Message-Id:1': 0.62; 'python-list': 0.66; 'search,': 0.72; 'cheung': 0.84; 'mathematica': 0.84; 'subject:formulas': 0.84; 'url:api': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=m06/9Jv3DVcd7oUodAycw0XBhkA=; b=GaOZle /QQaEzVmKOKf6pD4KX/p5qVzCSe/Rhx7e5ksNctrVxj3Wzgzx/dpq6/j/NS5W6o/ 801vjdzPzihSirBWoGlzy6rREon1qxwCLZzBculqeOtjNenakW2jqXo4cHTBunqy 3xYzZydDbuc/Rhloy2PgeQPloFbG3KoSbWR/o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=m06/9Jv3DVcd7oU odAycw0XBhkA=; b=b37x6Xw2TvtrbnQ9S4GaA5U2/GwL6O2shWSx5HgtnEZGlee 3MfVdpWDQFFXE1UmCh8hbg/yF0CNKJv3r7nQaLzpzmryyYzfCy5pbwFDJFgrC4X9 yMg0UJeA0yV3b4nTwTjzvQdZvrjxlm4iHeitpteSBQNfQtweUv8Gp0zOXBEA= X-Sasl-Enc: blbd4ME/G46y+1iRgsaM8DlQEiS4vOk8EG37eVhMnRwM 1434048887 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-ff004c4b In-Reply-To: References: Subject: Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats. Date: Thu, 11 Jun 2015 14:54:47 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1434048891 news.xs4all.nl 2895 [2001:888:2000:d::a6]:47296 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92496 On Thu, Jun 11, 2015, at 14:32, Sebastian M Cheung via Python-list wrote: > How to pretty mathematical formulas in Python? Similar to Mathematica > formats. > > Are there good packages to prettify mathematica formulas in Python? >From a google search, apparently matplotlib has a module called mathtext which uses a subset of LaTeX. http://matplotlib.org/api/mathtext_api.html Of course, you've got to put your formula in LaTeX format... which is the same format used on Stack Exchange and Wikipedia, so you should be able to find plenty of resources to learn about it.