-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gnuplot native support by default #10
Comments
So I think your problem is like in here where you need to load
But I can't test because I first need to make sure Another option is to directly do everything with this library without using
It should not be too hard to adapt this to use the tikz background, just you will need a different |
Great, thank you. Will test this in a minute. |
The first proposal is not working or I am doing something wrong. With the setting
I still get the error The second proposal is sadly not working either. Run in command line it says:
|
Sorry, for the first one I meant
and you should use it like:
(you can also create a new preset that wraps it automatically, but let's start simple) For the second example, it is weird, seems like it added a TAB-like characters in front of the |
Ok I managed to find how to get the .sty file (cf comments), so here is the version for the
|
Thank you for your work! Ah, I was fiddeling with the latex part myself, after reading your documentation again, but didn't manage it. Your code does compile without errors, but it does not generate the plot. There is no fig-1 file, the latex log doesn't complain, but the robust-externalize log says:
I think in the latex environment is the -shell-escape missing. That is needed for gnuplottex. Is it possibile to add that? The second is sadly not working either. Still the error
|
Ok so I added support for gnuplot in Master (next v2.3). I was able to succesfully compile this file, at least on linux:
Hopefully, it will work for you as well? Let me know, I'm really curious to understand what is wrong. For the approach based on
This gives me the (tested and working) code:
Regarding your error with the
If you don't know how to run these commands in a terminal, let me know what is your OS and I can tell you more. Meanwhile, attach these files to this conversation. |
This is awesome, thank you for all your work! The master does still say it is version 2.2, is this intended? Your version brought things a big step further! :) But the indent problem is still there. At least for me. If I remove all indents and every leading spaces in every line and compile in command line with
I don't know why the indents are a problem. With a simple copy of your code I get two errors like this: You second approach is working now without any problem :) Splendid! I will try and investigate the indent error in the original code. Edit: I can no longer reproduce the former errors with version 2. Unfortunately I did not safe the old version. Do you want me to investigate further? Then I would need the old version. |
There seems to be problems with tabs in gnuplot. I can run
without problems. But with one ore more tabs bevore the gnuplot comment
Wit one ore more spaces on the other hand, it is working.
|
I just noticed that, if I want to plot data from a file, that file has to be in the robustExternalize folder, otherwise the plot fails, the latex compilaiton works and the figure stays empty. I don't know if this is intended, but it is a difference to gnuplottex, where the data has to be in the main folder. Code example:
|
For the folder, by default the file must be in
I advise you not to directly put stuff in the cache folder as it might be removed if you clean it. |
I will try to automatically add |
And for your other issues, I’ll get back to you later today, I have some stuff to do before. |
This workaround is perfekt. Thank you again for your quick response! |
The fact that the command succeeds is a bit more annoying. I guess that gnuplot creates the file even if the command fails, will try to find a solution. |
No worries. You also implemented a working gnuplot environment and I am very happy. If you need further information from me, please tell. |
There is a pdf file created, but it is not a valid pdf, I can not open it. If I run the gnuplot code inside the robEx-xxxxx.tex file, the correct pdf is created. |
Is it possible to the set size to the latex length \textwidth? Or omit the size option? If I remove the
Edit: It is working if I write Edit2: To set the size to \textwidth with gnuplottex is rather complicated. It can be set with
This solution is from here. But this does not work with robust-externalize. In the created gnuplot tex file is the size not replaced with the length, but written as |
Really great work. Even the |
The fact that an invalid pdf is created even if the gnuplot command fails has been fixed in master.
I pushed a change so that you don't even need this workaround anymore. Now, you can just do:
(dependencies is needed to recompile the file if the data changes: if you do not add it it will not recompile automatically if you change the dependency file)
You can omit the size, it will just default to the size in gnuplot (this line is basically sent as it to
In the very latest version, I just pushed a modification allowing you to write this directly (do not forget the
|
In the (even more recent) latest version, I also added support for cairolatex:
So I guess I consider now the native support of gnuplot quite complete. If you have any other issue, please recreate a new issue as this one starts to be a bit of a mess. |
Absolutely great. Thank you for all your wok! Everything works as you described, beautiful! Is there some way to support you? |
No problem, thanks for your reports!
Sure:
Thanks a lot! Btw, I added an option |
The environment
gnuplot
is not working. Is it possible to cache gnuplot code? The package is calledgnuplottex
and to convert gnuplot plots to tikz and include it inside Latex the packagegnuplot-lua-tikz
is needed, even if one is not using lua. For this package the--shell-escape
option has to be set as well. Ther error isPackage pgfkeys Error: I do not know the key '/robExt/gnuplot' and I am going to ignore it. Perhaps you misspelled it. ^^I\end
.For this a caching would be especially great, since the calculation of the plot can take some time and it is calculated every time.
Here is a minimalistic example which runs without
CacheMe:
The text was updated successfully, but these errors were encountered: