SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(7)
2
(5)
3
(3)
4
5
(1)
6
(4)
7
(1)
8
(6)
9
(2)
10
(13)
11
(1)
12
13
(5)
14
(1)
15
(3)
16
(1)
17
(9)
18
(1)
19
(6)
20
21
(2)
22
(1)
23
(2)
24
(15)
25
(1)
26
(5)
27
(6)
28
(6)
29
(5)
30
(10)
31
(1)

Showing 6 results of 6

From: Trémouilles D. <dav...@gm...> - 2012年08月08日 20:54:30
Thank you very much Peter :-)
I'm going to test...
David
Le 08/08/12 12:59, Peter Würtz a écrit :
>
> Peter Würtz wrote:
>>
>> David Trémouilles wrote:
>>> Is there any reason that the generated figure could not be used with
>>> pdflatex ?
>>>
>> The PGF pictures should work with pdflatex, xelatex and lualatex alike.
>> Xelatex (or lualatex) must be installed though because I use it for
>> obtaining the font metrics when the figure is created. In principle I
>> could use pdflatex for this as well, I just saw no reason to use it
>> anymore when I learned about the newer implementations.
>>
> Ok, the latest commit now allows you to rely on pdflatex only. Xelatex is
> still the default, but you can change that using the rc parameters:
>
> matplotlib.rcParams.update({
> "font.family": "serif",
> "pgf.texsystem": "pdflatex",
> "pgf.preamble": [r"\usepackage{siunitx}",
> r"\usepackage{somefontpackage}"],
> })
>
> System fonts specified in the rc parameters will be ignored since pdflatex
> cannot use them. Font metrics will be obtained from a pdflatex process. If
> you save the figure as pdf, pdflatex will be used to compile the figure.
>
> Hope this helps.
From: Peter W. <pw...@go...> - 2012年08月08日 10:59:07
Peter Würtz wrote:
> 
> 
> David Trémouilles wrote:
>> 
>> Is there any reason that the generated figure could not be used with
>> pdflatex ?
>> 
> 
> The PGF pictures should work with pdflatex, xelatex and lualatex alike.
> Xelatex (or lualatex) must be installed though because I use it for
> obtaining the font metrics when the figure is created. In principle I
> could use pdflatex for this as well, I just saw no reason to use it
> anymore when I learned about the newer implementations.
> 
Ok, the latest commit now allows you to rely on pdflatex only. Xelatex is
still the default, but you can change that using the rc parameters:
matplotlib.rcParams.update({
 "font.family": "serif",
 "pgf.texsystem": "pdflatex",
 "pgf.preamble": [r"\usepackage{siunitx}",
r"\usepackage{somefontpackage}"],
})
System fonts specified in the rc parameters will be ignored since pdflatex
cannot use them. Font metrics will be obtained from a pdflatex process. If
you save the figure as pdf, pdflatex will be used to compile the figure.
Hope this helps.
-- 
View this message in context: http://old.nabble.com/Asking-for-code-review%3A-Xelatex---PGF-backend-tp34263853p34271056.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Peter W. <pw...@go...> - 2012年08月08日 08:33:39
David Trémouilles wrote:
> 
> Is there any reason that the generated figure could not be used with
> pdflatex ?
> 
The PGF pictures should work with pdflatex, xelatex and lualatex alike.
Xelatex (or lualatex) must be installed though because I use it for
obtaining the font metrics when the figure is created. In principle I could
use pdflatex for this as well, I just saw no reason to use it anymore when I
learned about the newer implementations.
So in order to get the font metrics right you should tell the backend which
fonts you are going to use later. You need to disable the default font
configuration that uses the system fonts specified in the matplotlib rc
paramteres and fully configure the latex environment using your own
preamble. This can be done using the rc parameters:
matplotlib.rcParams.update({
 "pgf.rcfonts": False,
 "pgf.preamble": [r"\usepackage{siunitx}",
r"\usepackage{somefontpackage}"],
})
I never thought about it, but if there interest in using this with pdflatex
I could add this as an option. It might just be a little bit confusing since
the font setup will be different when switching from xelatex to pdflatex due
to its limitations.
-- 
View this message in context: http://old.nabble.com/Asking-for-code-review%3A-Xelatex---PGF-backend-tp34263853p34270497.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Damon M. <dam...@gm...> - 2012年08月08日 08:28:00
On Wed, Aug 08, 2012 at 09:26:58AM +0100, Damon McDougall wrote:
> I saw this article on hacker news and wondered if it would be applicable
> to us? http://free.pages.at/easyfilter/bresenham.html
> 
> Perhaps not, but I certainly learned something from it so I thought I'd
> share anyway.
> 
> Best,
> Damon
...and that should be 'Bresenham', not 'Breseham'.
-- 
Damon McDougall
http://damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
From: Damon M. <dam...@gm...> - 2012年08月08日 08:27:07
I saw this article on hacker news and wondered if it would be applicable
to us? http://free.pages.at/easyfilter/bresenham.html
Perhaps not, but I certainly learned something from it so I thought I'd
share anyway.
Best,
Damon
-- 
Damon McDougall
http://damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
From: Trémouilles D. <dav...@gm...> - 2012年08月08日 07:36:27
Le 07/08/12 01:17, Peter Würtz a écrit :
> Hi!
> I would like to ask for a code review for a new backend I wrote for creating
> figures with Xelatex/Lualatex. It uses the PGF (Tikz) Package for all
> drawing operations and enables full unicode support and typesetting of
> texts/formulas using Latex. This way, the figures created fit perfectly in
> Latex documents. Furthermore, Xelatex/Lualatex is able to use the fonts
> installed on your operating system. The drawing commands of the PGF pictures
> can be included in Latex documents or can be directly compiled to PDF by the
> backend.
>
> Github project for hosting the code, usage instructions and examples:
> https://github.com/pwuertz/matplotlib-backend-pgf
>
> A document demonstrating the benefits of using Xelatex/PGF:
> https://github.com/pwuertz/matplotlib-backend-pgf/raw/master/demo/demo.pdf
>
> Gallery of the matplotlib examples processed with backend_pgf:
> https://github.com/pwuertz/matplotlib-backend-pgf/wiki/Examples%20Gallery
> A few exceptions are known to fail due to Latex incompatible math-text.
>
> This is a matplotlib branch set up as suggested in the matplotlib developer
> wiki. It includes the code from above and adds new rc-parameters and the
> '.pgf' file type.
> https://github.com/pwuertz/matplotlib/compare/master...pgf-backend
>
> Discussions are usually taking place at the github diff, right? I hope
> you'll find this an interesting option for creating figures with matplotlib.
>
> Cheers,
> Peter
Very interesting work. Thanks.
Is there any reason that the generated figure could not
be used with pdflatex ?
I ask the question before giving it a try (I use pdflatex).
Regards,
David

Showing 6 results of 6

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /