Extensions implementation

* Packaging * Plot (2D, 3D) with GR library * Script * LinearAlgebra

Differential D2457

Julia backend: math and other extensions

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

Details

- Reviewers
filipesaraiva - Group Reviewers
Cantor - Maniphest Tasks
- T1753: Add support for Julia (julialang-backend)
- Commits
- R55:f774eb096362: Extensions implementation

Extensions implementation

* Packaging * Plot (2D, 3D) with GR library * Script * LinearAlgebra

Diff Detail

- Repository
- R55 Cantor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.

src/backends/julia/juliaextensions.cpp | ||
---|---|---|

133 | Could you to provide an example of plot 2d? I tried to use The command sent by the assistant was: import GR GR.xlim((-1, 1)) GR.plot(linspace(-1, 1, 100), [sin for x in linspace(-1, 1, 100)]) The error output was: error during run: expected Real or Complex in plot_args at /home/kdevil/.julia/v0.4/GR/src/jlgr.jl:754 in plot at /home/kdevil/.julia/v0.4/GR/src/jlgr.jl:830 in plot at /home/kdevil/.julia/v0.4/GR/src/GR.jl:1234 in anonymous at no file | |

155 | Do you know if |

src/backends/julia/juliaextensions.cpp | ||
---|---|---|

133 | About 2d plot. As I understand you should provide In you example output is correct, as | |

155 | I have investigated this. Actually there is about 5-6 plotting libs for Julia. About a half of them is HTML + JS based and don't support saving to image. One of them outputs text-written graph with unicode. There is one based on Pythons matplotlib. I have struggled with it for 2 days year ago, but it don't work for me even from Julia native REPL. It always fail with incompatible versions of C-part, python-part and julia's PyCall part. Also on install it compiles C-part and requires installation of GR were the only one that worked simply by I haven't seen any statistics on different libs usage. |