Julia backend: inline plots
ClosedPublic

Authored by ivanlakhtanov on Aug 16 2016, 2:22 AM.

Details

Summary

Implemented inline plots

* Appending savefig to the ends of the commands
  mentioning plotting functions
* Reading resulting files, that are saved to tmp
  dir
* Saving graph in eps format

Diff Detail

Repository
R55 Cantor
Lint
Lint Skipped
Unit
Unit Tests Skipped
ivanlakhtanov retitled this revision from to Julia backend: inline plots.
ivanlakhtanov updated this object.
ivanlakhtanov edited the test plan for this revision. (Show Details)
ivanlakhtanov set the repository for this revision to R55 Cantor.
ivanlakhtanov added subscribers: Cantor, filipesaraiva.
filipesaraiva edited edge metadata.Aug 21 2016, 6:18 PM

Could you provide some code to test it? I was using the plot command used in a previous revision but it is not working. The figure is not saved and I can not see the plot in a different window.

Looks like your implementation allows only the inline plot, right? There is not an option to turn off the inline plot, right?

Could you provide some code to test it? I was using the plot command used in a previous revision but it is not working. The figure is not saved and I can not see the plot in a different window.

You can use wizard to create a plot as earlier. Can you send me a code that not working for you?

Looks like your implementation allows only the inline plot, right? There is not an option to turn off the inline plot, right?

Now all plots are inline. Do you want me to add an option?

filipesaraiva requested changes to this revision.Aug 21 2016, 7:27 PM
filipesaraiva edited edge metadata.

You must implement the way to turn on/off this feature. Give a look in other backends, you need to add a boolean variable in the Julia backend configuration screen and use that to turn on/off the feature.

src/backends/julia/juliaexpression.cpp
44

I don't know what is the problem but here in my computer only .svg files could be loaded in the worksheet. So, please change it to .svg and we will give a look here and in other backends to select a common image format for this feature in the future.

This revision now requires changes to proceed.Aug 21 2016, 7:27 PM
ivanlakhtanov edited edge metadata.

Added options to disable inline plots, choose intermediate format for them. Also fixes generating of 'gks.svg'

ivanlakhtanov marked an inline comment as done.Aug 21 2016, 8:58 PM
filipesaraiva accepted this revision.Aug 21 2016, 11:51 PM
filipesaraiva edited edge metadata.

That's ok @ivanlakhtanov, just do the change described below.

src/backends/julia/settings.ui
36

Just change the "restart backend when changed" to the more correct "start a new session when changed" or remove it.

This revision is now accepted and ready to land.Aug 21 2016, 11:51 PM
ivanlakhtanov edited edge metadata.
ivanlakhtanov marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.