Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliaexpression.cpp
Context not available. | |||||
37 | setStatus(Cantor::Expression::Computing); | 37 | setStatus(Cantor::Expression::Computing); | ||
---|---|---|---|---|---|
38 | auto juliaSession = dynamic_cast<JuliaSession *>(session()); | 38 | auto juliaSession = dynamic_cast<JuliaSession *>(session()); | ||
39 | 39 | | |||
40 | // Plots integration | ||||
40 | m_plot_filename.clear(); | 41 | m_plot_filename.clear(); | ||
41 | if (checkPlotShowingCommands()) { | 42 | if (checkPlotShowingCommands()) { | ||
43 | // Simply add plot saving command to the end of execution | ||||
42 | m_plot_filename = QDir::tempPath() + | 44 | m_plot_filename = QDir::tempPath() + | ||
43 | QString::fromLatin1("/cantor-julia-export-%1.eps") | 45 | QString::fromLatin1("/cantor-julia-export-%1.eps") | ||
44 | .arg(QUuid::createUuid().toString()); | 46 | .arg(QUuid::createUuid().toString()); | ||
Context not available. | |||||
64 | } else { | 66 | } else { | ||
65 | if (not m_plot_filename.isEmpty() | 67 | if (not m_plot_filename.isEmpty() | ||
66 | and QFileInfo(m_plot_filename).exists()) { | 68 | and QFileInfo(m_plot_filename).exists()) { | ||
69 | // If we have plot in result, show it | ||||
67 | setResult( | 70 | setResult( | ||
68 | new Cantor::ImageResult(QUrl::fromLocalFile(m_plot_filename))); | 71 | new Cantor::ImageResult(QUrl::fromLocalFile(m_plot_filename))); | ||
69 | QDir().remove(m_plot_filename); | 72 | QDir().remove(m_plot_filename); | ||
Context not available. |