Can a GLE code be empaded in Latex document?Best practices for publishing computer code with LaTeX?Write environment body verbatim to a fileDelimit a single auxiliary file into chunks, and include these at separate places?Convert Title Page from LaTeX (or the resulting PDF) into a PNG thumbnailTurn recipes (rezkonv, mealmaster) into LaTeX codeIllustrator export for LatexCan LaTeX automatically search directories and include discovered files?Best practices for publishing computer code with LaTeX?Does LaTeX support including a specific part of an input, like a specific environment and ignoring everything else?Tangle source code from PDF for literate programsHow to compile a document that you can search the pdf for latex math formulas?Can I store .bib files in an external folder?
Typesetting a double Over Dot on top of a symbol
Extreme, but not acceptable situation and I can't start the work tomorrow morning
On the insanity of kings as an argument against Monarchy
Information to fellow intern about hiring?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
How would photo IDs work for shapeshifters?
Supports in 3d printing
What is this 4-propeller plane?
How to manage monthly salary
"To split hairs" vs "To be pedantic"
I see my dog run
What is the purpose of trimming the bottom corners of TLC plates?
Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?
Does it makes sense to buy a new cycle to learn riding?
Pristine Bit Checking
Is it possible to build an equivalent function just looking at the input and output of the original function?
Can one use the reaction spell from the War Caster feat to cast Bigby's Hand?
What is the command to reset a Windows installation without deleting any files
Cannot send mail from command line, sasl authentication error
Email Account under attack (really) - anything I can do?
Why isn't airport relocation done gradually?
Is domain driven design an anti-SQL pattern?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
Can a GLE code be empaded in Latex document?
Best practices for publishing computer code with LaTeX?Write environment body verbatim to a fileDelimit a single auxiliary file into chunks, and include these at separate places?Convert Title Page from LaTeX (or the resulting PDF) into a PNG thumbnailTurn recipes (rezkonv, mealmaster) into LaTeX codeIllustrator export for LatexCan LaTeX automatically search directories and include discovered files?Best practices for publishing computer code with LaTeX?Does LaTeX support including a specific part of an input, like a specific environment and ignoring everything else?Tangle source code from PDF for literate programsHow to compile a document that you can search the pdf for latex math formulas?Can I store .bib files in an external folder?
I am searching for a good tool for graphs and charts and found Graphics Layout Engine. Am I able to include a code written in GLE within a latex document?
The aim is not including it as a file in the document but as a script within the latex script, is it possible?
Thank you
pdf external-files
|
show 7 more comments
I am searching for a good tool for graphs and charts and found Graphics Layout Engine. Am I able to include a code written in GLE within a latex document?
The aim is not including it as a file in the document but as a script within the latex script, is it possible?
Thank you
pdf external-files
3
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages likepgfplotsandTikZaround, which also enable you to produce high quality plots and images.
– Skillmon
Apr 1 '18 at 17:37
1
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
1
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with thematplotliblibrary. If you want to go deep in the code to fully control the output, you may usepgfplotsofTikZas proposed by @Skillmon ...
– BambOo
Apr 1 '18 at 17:59
2
In addition to @BambOo: Python'smatplotlibcan export topgf-code which can be included directly into your LaTeX document with thepgf(orTikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).
– Skillmon
Apr 1 '18 at 18:11
1
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24
|
show 7 more comments
I am searching for a good tool for graphs and charts and found Graphics Layout Engine. Am I able to include a code written in GLE within a latex document?
The aim is not including it as a file in the document but as a script within the latex script, is it possible?
Thank you
pdf external-files
I am searching for a good tool for graphs and charts and found Graphics Layout Engine. Am I able to include a code written in GLE within a latex document?
The aim is not including it as a file in the document but as a script within the latex script, is it possible?
Thank you
pdf external-files
pdf external-files
edited Apr 2 '18 at 7:56
User505
asked Apr 1 '18 at 17:33
User505User505
1327
1327
3
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages likepgfplotsandTikZaround, which also enable you to produce high quality plots and images.
– Skillmon
Apr 1 '18 at 17:37
1
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
1
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with thematplotliblibrary. If you want to go deep in the code to fully control the output, you may usepgfplotsofTikZas proposed by @Skillmon ...
– BambOo
Apr 1 '18 at 17:59
2
In addition to @BambOo: Python'smatplotlibcan export topgf-code which can be included directly into your LaTeX document with thepgf(orTikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).
– Skillmon
Apr 1 '18 at 18:11
1
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24
|
show 7 more comments
3
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages likepgfplotsandTikZaround, which also enable you to produce high quality plots and images.
– Skillmon
Apr 1 '18 at 17:37
1
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
1
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with thematplotliblibrary. If you want to go deep in the code to fully control the output, you may usepgfplotsofTikZas proposed by @Skillmon ...
– BambOo
Apr 1 '18 at 17:59
2
In addition to @BambOo: Python'smatplotlibcan export topgf-code which can be included directly into your LaTeX document with thepgf(orTikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).
– Skillmon
Apr 1 '18 at 18:11
1
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24
3
3
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages like
pgfplots and TikZ around, which also enable you to produce high quality plots and images.– Skillmon
Apr 1 '18 at 17:37
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages like
pgfplots and TikZ around, which also enable you to produce high quality plots and images.– Skillmon
Apr 1 '18 at 17:37
1
1
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
1
1
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with the
matplotlib library. If you want to go deep in the code to fully control the output, you may use pgfplots of TikZ as proposed by @Skillmon ...– BambOo
Apr 1 '18 at 17:59
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with the
matplotlib library. If you want to go deep in the code to fully control the output, you may use pgfplots of TikZ as proposed by @Skillmon ...– BambOo
Apr 1 '18 at 17:59
2
2
In addition to @BambOo: Python's
matplotlib can export to pgf-code which can be included directly into your LaTeX document with the pgf (or TikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).– Skillmon
Apr 1 '18 at 18:11
In addition to @BambOo: Python's
matplotlib can export to pgf-code which can be included directly into your LaTeX document with the pgf (or TikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).– Skillmon
Apr 1 '18 at 18:11
1
1
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24
|
show 7 more comments
1 Answer
1
active
oldest
votes
You can insert the GLE code in your document, write it to a temporary file, call GLE on this file, and include the output as an image. Writing the contents of an environment to a file can be done with VerbatimOut from the fancyvrb package, see Write environment body verbatim to a file. Calling an external program can be done with immediatewrite18 (see for example https://stackoverflow.com/questions/3252957/how-to-execute-shell-script-from-latex), which requires the --shell-escape flag when compiling the document.
A counter called glenum is used to prevent caching by creating different filenames in case you want to compile more than one figure.
MWE:
documentclassarticle
usepackagegraphicx
usepackagefancyvrb
newcounterglenum
setcounterglenum0
newenvironmentGLEinclude[1]
xdefmywd#1VerbatimOutjobname.theglenum.gle
endVerbatimOut%
immediatewrite18gle -output jobname.theglenum.gle.pdf jobname.theglenum.gle%
includegraphics[width=mywd]jobname.theglenum.gle.pdf%
stepcounterglenum%
begindocument
Here is a tree fractal compiled with GLE:
beginGLEinclude5cm
size 32 22
a = 3; b = 4; c = sqrt(a^2+b^2)
sub pythagorean n
local red = (34+n*92)/(n+1)
local green = (139+n*64)/(n+1)
local blue = (34+n*51)/(n+1)
box c c fill rgb255(red,green,blue)
if n = 0 then return
begin translate c c
begin rotate todeg(-acos(a/c))
begin scale a/c a/c
begin translate -c 0
pythagorean n-1
end translate
end scale
end rotate
end translate
begin translate 0 c
begin rotate todeg(acos(b/c))
begin scale b/c b/c
pythagorean n-1
end scale
end rotate
end translate
end sub
begin translate 16 0
pythagorean 10
end translate
endGLEinclude
Also known as a textbfPythagorean tree.
enddocument
Result:

add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f424344%2fcan-a-gle-code-be-empaded-in-latex-document%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can insert the GLE code in your document, write it to a temporary file, call GLE on this file, and include the output as an image. Writing the contents of an environment to a file can be done with VerbatimOut from the fancyvrb package, see Write environment body verbatim to a file. Calling an external program can be done with immediatewrite18 (see for example https://stackoverflow.com/questions/3252957/how-to-execute-shell-script-from-latex), which requires the --shell-escape flag when compiling the document.
A counter called glenum is used to prevent caching by creating different filenames in case you want to compile more than one figure.
MWE:
documentclassarticle
usepackagegraphicx
usepackagefancyvrb
newcounterglenum
setcounterglenum0
newenvironmentGLEinclude[1]
xdefmywd#1VerbatimOutjobname.theglenum.gle
endVerbatimOut%
immediatewrite18gle -output jobname.theglenum.gle.pdf jobname.theglenum.gle%
includegraphics[width=mywd]jobname.theglenum.gle.pdf%
stepcounterglenum%
begindocument
Here is a tree fractal compiled with GLE:
beginGLEinclude5cm
size 32 22
a = 3; b = 4; c = sqrt(a^2+b^2)
sub pythagorean n
local red = (34+n*92)/(n+1)
local green = (139+n*64)/(n+1)
local blue = (34+n*51)/(n+1)
box c c fill rgb255(red,green,blue)
if n = 0 then return
begin translate c c
begin rotate todeg(-acos(a/c))
begin scale a/c a/c
begin translate -c 0
pythagorean n-1
end translate
end scale
end rotate
end translate
begin translate 0 c
begin rotate todeg(acos(b/c))
begin scale b/c b/c
pythagorean n-1
end scale
end rotate
end translate
end sub
begin translate 16 0
pythagorean 10
end translate
endGLEinclude
Also known as a textbfPythagorean tree.
enddocument
Result:

add a comment |
You can insert the GLE code in your document, write it to a temporary file, call GLE on this file, and include the output as an image. Writing the contents of an environment to a file can be done with VerbatimOut from the fancyvrb package, see Write environment body verbatim to a file. Calling an external program can be done with immediatewrite18 (see for example https://stackoverflow.com/questions/3252957/how-to-execute-shell-script-from-latex), which requires the --shell-escape flag when compiling the document.
A counter called glenum is used to prevent caching by creating different filenames in case you want to compile more than one figure.
MWE:
documentclassarticle
usepackagegraphicx
usepackagefancyvrb
newcounterglenum
setcounterglenum0
newenvironmentGLEinclude[1]
xdefmywd#1VerbatimOutjobname.theglenum.gle
endVerbatimOut%
immediatewrite18gle -output jobname.theglenum.gle.pdf jobname.theglenum.gle%
includegraphics[width=mywd]jobname.theglenum.gle.pdf%
stepcounterglenum%
begindocument
Here is a tree fractal compiled with GLE:
beginGLEinclude5cm
size 32 22
a = 3; b = 4; c = sqrt(a^2+b^2)
sub pythagorean n
local red = (34+n*92)/(n+1)
local green = (139+n*64)/(n+1)
local blue = (34+n*51)/(n+1)
box c c fill rgb255(red,green,blue)
if n = 0 then return
begin translate c c
begin rotate todeg(-acos(a/c))
begin scale a/c a/c
begin translate -c 0
pythagorean n-1
end translate
end scale
end rotate
end translate
begin translate 0 c
begin rotate todeg(acos(b/c))
begin scale b/c b/c
pythagorean n-1
end scale
end rotate
end translate
end sub
begin translate 16 0
pythagorean 10
end translate
endGLEinclude
Also known as a textbfPythagorean tree.
enddocument
Result:

add a comment |
You can insert the GLE code in your document, write it to a temporary file, call GLE on this file, and include the output as an image. Writing the contents of an environment to a file can be done with VerbatimOut from the fancyvrb package, see Write environment body verbatim to a file. Calling an external program can be done with immediatewrite18 (see for example https://stackoverflow.com/questions/3252957/how-to-execute-shell-script-from-latex), which requires the --shell-escape flag when compiling the document.
A counter called glenum is used to prevent caching by creating different filenames in case you want to compile more than one figure.
MWE:
documentclassarticle
usepackagegraphicx
usepackagefancyvrb
newcounterglenum
setcounterglenum0
newenvironmentGLEinclude[1]
xdefmywd#1VerbatimOutjobname.theglenum.gle
endVerbatimOut%
immediatewrite18gle -output jobname.theglenum.gle.pdf jobname.theglenum.gle%
includegraphics[width=mywd]jobname.theglenum.gle.pdf%
stepcounterglenum%
begindocument
Here is a tree fractal compiled with GLE:
beginGLEinclude5cm
size 32 22
a = 3; b = 4; c = sqrt(a^2+b^2)
sub pythagorean n
local red = (34+n*92)/(n+1)
local green = (139+n*64)/(n+1)
local blue = (34+n*51)/(n+1)
box c c fill rgb255(red,green,blue)
if n = 0 then return
begin translate c c
begin rotate todeg(-acos(a/c))
begin scale a/c a/c
begin translate -c 0
pythagorean n-1
end translate
end scale
end rotate
end translate
begin translate 0 c
begin rotate todeg(acos(b/c))
begin scale b/c b/c
pythagorean n-1
end scale
end rotate
end translate
end sub
begin translate 16 0
pythagorean 10
end translate
endGLEinclude
Also known as a textbfPythagorean tree.
enddocument
Result:

You can insert the GLE code in your document, write it to a temporary file, call GLE on this file, and include the output as an image. Writing the contents of an environment to a file can be done with VerbatimOut from the fancyvrb package, see Write environment body verbatim to a file. Calling an external program can be done with immediatewrite18 (see for example https://stackoverflow.com/questions/3252957/how-to-execute-shell-script-from-latex), which requires the --shell-escape flag when compiling the document.
A counter called glenum is used to prevent caching by creating different filenames in case you want to compile more than one figure.
MWE:
documentclassarticle
usepackagegraphicx
usepackagefancyvrb
newcounterglenum
setcounterglenum0
newenvironmentGLEinclude[1]
xdefmywd#1VerbatimOutjobname.theglenum.gle
endVerbatimOut%
immediatewrite18gle -output jobname.theglenum.gle.pdf jobname.theglenum.gle%
includegraphics[width=mywd]jobname.theglenum.gle.pdf%
stepcounterglenum%
begindocument
Here is a tree fractal compiled with GLE:
beginGLEinclude5cm
size 32 22
a = 3; b = 4; c = sqrt(a^2+b^2)
sub pythagorean n
local red = (34+n*92)/(n+1)
local green = (139+n*64)/(n+1)
local blue = (34+n*51)/(n+1)
box c c fill rgb255(red,green,blue)
if n = 0 then return
begin translate c c
begin rotate todeg(-acos(a/c))
begin scale a/c a/c
begin translate -c 0
pythagorean n-1
end translate
end scale
end rotate
end translate
begin translate 0 c
begin rotate todeg(acos(b/c))
begin scale b/c b/c
pythagorean n-1
end scale
end rotate
end translate
end sub
begin translate 16 0
pythagorean 10
end translate
endGLEinclude
Also known as a textbfPythagorean tree.
enddocument
Result:

edited 2 mins ago
answered 20 mins ago
MarijnMarijn
8,469637
8,469637
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f424344%2fcan-a-gle-code-be-empaded-in-latex-document%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Of course you are if you're willing to write an interpreter in TeX that reads that format (I never heard of one as of now). Note however that there are packages like
pgfplotsandTikZaround, which also enable you to produce high quality plots and images.– Skillmon
Apr 1 '18 at 17:37
1
that page says that it will generate pdf, which you can then include into latex
– David Carlisle
Apr 1 '18 at 17:45
1
It really depends on what tool you can use and how far you want to go. If you use MATLAB, you can create your figures and print them as eps or other vector or raster graphics formats. If you use python, you can do the same with the
matplotliblibrary. If you want to go deep in the code to fully control the output, you may usepgfplotsofTikZas proposed by @Skillmon ...– BambOo
Apr 1 '18 at 17:59
2
In addition to @BambOo: Python's
matplotlibcan export topgf-code which can be included directly into your LaTeX document with thepgf(orTikZ) package. This way every font aspect should match the rest of your document (but it might really slow down your compilation process).– Skillmon
Apr 1 '18 at 18:11
1
Right, so the suggested duplicate doesn't fit. (I've voted to reopen.) I don't know whether such a thing exists, in the meantime you can of course use David's suggestion.
– Torbjørn T.
Apr 2 '18 at 6:24