# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=337

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 338

---

## [Using \`\`\`set\_state\`\`\`?](https://discourse.julialang.org/t/using-set-state/68045)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 9\
**Last updated:** [September 12, 2021, 12:58pm UTC](https://discourse.julialang.org/t/using-set-state/68045 "2021-09-12T12:58:29Z")

</div>

Can someone elaborate on how to use set\_state while using parallel\_integrator .Specifically how exactly to specify the index of the state to be set.? I couldn’t interpret tht documentation provided on their website!

---

## [Constraints in Catalyst.jl for weak acids and pH equilibrium](https://discourse.julialang.org/t/constraints-in-catalyst-jl-for-weak-acids-and-ph-equilibrium/68037)

<div class="topic-metadata">

**Author:** [@gagnonaa10](https://discourse.julialang.org/u/gagnonaa10)\
**Replies:** 2\
**Last updated:** [September 12, 2021, 12:09pm UTC](https://discourse.julialang.org/t/constraints-in-catalyst-jl-for-weak-acids-and-ph-equilibrium/68037 "2021-09-12T12:09:27Z")

</div>

Hello Everyone, I was hoping for some guidance on how to incorporate constraints for pH equilibriums constants into a disinfection model I am building in Julia. A simplified version of the reaction network is here: us…

---

## [How to fix the rotated label position in this plot?](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 7\
**Last updated:** [September 12, 2021, 9:54am UTC](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025 "2021-09-12T09:54:12Z")

</div>

Hi, I cannot figure how to correct the position of the rotated xticks label in the following plot: using Plots a=\["absmax\_global", "absmax\_global\_ref", "absmax\_local"\] b=\[0.03953348557784052, 1.0667377825188347, 1.9650…

---

## [Julia crashes when doing parameter estimation for a system of differential equations in VScode](https://discourse.julialang.org/t/julia-crashes-when-doing-parameter-estimation-for-a-system-of-differential-equations-in-vscode/67859)

<div class="topic-metadata">

**Author:** [@shwetank\_verma](https://discourse.julialang.org/u/shwetank_verma)\
**Replies:** 9\
**Last updated:** [September 12, 2021, 8:48am UTC](https://discourse.julialang.org/t/julia-crashes-when-doing-parameter-estimation-for-a-system-of-differential-equations-in-vscode/67859 "2021-09-12T08:48:18Z")

</div>

I have written a battery model in Julia. This model already runs without any issues. I want to now do parameter estimation w.r.t to testing data using DiffEqFlux.jl . However, whenever I run the diffeqflux.scimltrain co…

---

## [How to create JuMP expressions without adding them to a model?](https://discourse.julialang.org/t/how-to-create-jump-expressions-without-adding-them-to-a-model/68012)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 5\
**Last updated:** [September 11, 2021, 11:56am UTC](https://discourse.julialang.org/t/how-to-create-jump-expressions-without-adding-them-to-a-model/68012 "2021-09-11T11:56:27Z")

</div>

I’m trying to build a GARCH(1, 1) model, and this requires recursively constructing the variance: \\sigma\_t^2 = \\alpha + \\beta \\epsilon\_{t-1}^2 + \\gamma \\sigma\_{t-1}^2 Since the variances are unobserved (only the epsil…

---

## [Large-scale least squares with ModelingToolkit.jl?](https://discourse.julialang.org/t/large-scale-least-squares-with-modelingtoolkit-jl/67957)

<div class="topic-metadata">

**Author:** [@twadleigh](https://discourse.julialang.org/u/twadleigh)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 2:15am UTC](https://discourse.julialang.org/t/large-scale-least-squares-with-modelingtoolkit-jl/67957 "2021-09-11T02:15:07Z")

</div>

I’m starting to dig deep into ModelingToolkit.jl with the intention of using it to model a version of the SLAM problem. Ultimately, SLAM problems end up looking like large-scale nonlinear least squares problems. Instead …

---

## [GLMakie text plots and LaTeXStrings](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014)

<div class="topic-metadata">

**Author:** [@JCQ](https://discourse.julialang.org/u/JCQ)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 2:15am UTC](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014 "2021-09-11T02:15:01Z")

</div>

I would like to do interactive LaTeXString text plots. However, updating a LaTeXString Node after the text plot has been created, doesn’t affect the plotted text. Here is a small example: using GLMakie fig = Figure()…

---

## [Powermodels Solver options](https://discourse.julialang.org/t/powermodels-solver-options/68003)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 7\
**Last updated:** [September 10, 2021, 9:54pm UTC](https://discourse.julialang.org/t/powermodels-solver-options/68003 "2021-09-10T21:54:28Z")

</div>

Hello everyone i have a question regarding how to change solver options while using Powermodels.jl. I would appreciate your help in this regard.

---

## [Obtaining a Julia \`Image\` from Luxor.jl](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 6:49pm UTC](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992 "2021-09-10T18:49:31Z")

</div>

At the moment I draw an Image with Luxor and load it back into an Image with using Luxor, Images, FileIO d = Luxor.Drawing(width, height, "temp.png") … Luxor.finish() load("temp.png") Is there a way to get the image ba…

---

## [Confused about build\_function](https://discourse.julialang.org/t/confused-about-build-function/67946)

<div class="topic-metadata">

**Author:** [@gzheng](https://discourse.julialang.org/u/gzheng)\
**Replies:** 6\
**Last updated:** [September 10, 2021, 5:55pm UTC](https://discourse.julialang.org/t/confused-about-build-function/67946 "2021-09-10T17:55:01Z")

</div>

I wanted to do a very basic application of build\_function to test out modelingtoolkit.jl, but ran into issues. using ModelingToolkit @parameters a b @variables x y = x^2 z = x + a f\_y = build\_function(y, x) # This wo…

---

## [Fitting a observed value to a Binomial Distribution Turing](https://discourse.julialang.org/t/fitting-a-observed-value-to-a-binomial-distribution-turing/66619)

<div class="topic-metadata">

**Author:** [@jonathan\_skai](https://discourse.julialang.org/u/jonathan_skai)\
**Replies:** 3\
**Last updated:** [September 10, 2021, 4:04pm UTC](https://discourse.julialang.org/t/fitting-a-observed-value-to-a-binomial-distribution-turing/66619 "2021-09-10T16:04:57Z")

</div>

I am new to Turing and trying to learn it by trying to replicate the Chapters from the book :- https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers . Here is my problem (from Ch…

---

## [Gtk.jl clear canvas on key event](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757)

<div class="topic-metadata">

**Author:** [@htmj](https://discourse.julialang.org/u/htmj)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 2:18pm UTC](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757 "2021-09-10T14:18:48Z")

</div>

Hi! I’m trying to make a simple drawing app, and i want to clear the canvas when space is pressed. I understood from this discussion Resetting the canvas within Cairo.jl and Gtk.jl for an image selection viewing gui that…

---

## [Save Random Forest Model for Use in Android Application](https://discourse.julialang.org/t/save-random-forest-model-for-use-in-android-application/32400)

<div class="topic-metadata">

**Author:** [@casstrong](https://discourse.julialang.org/u/casstrong)\
**Replies:** 0\
**Last updated:** [December 17, 2019, 7:31pm UTC](https://discourse.julialang.org/t/save-random-forest-model-for-use-in-android-application/32400 "2019-12-17T19:31:19Z")

</div>

I would like to train a random forest classifier (using DecisionTree.jl) and then export it for use in an Android application that I’m developing. I’ve seen ways to save the model as a .jld or a .jld2 file; however, I ha…

---

## [Makie | interactive update of colorrange in image! / heatmap!](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 1:57am UTC](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887 "2021-09-10T01:57:06Z")

</div>

Hello, I am attempting to do an interactive update of colorrange in image! of the form image!( . . . colorrange = (window\_level\_min, window\_level\_max), . . . ) using input from two Sliders. window\_level\_min a…

---

## [Is there a package that abstracts the storage location so that it's cloud and local path agnostic?](https://discourse.julialang.org/t/is-there-a-package-that-abstracts-the-storage-location-so-that-its-cloud-and-local-path-agnostic/67923)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 8\
**Last updated:** [September 9, 2021, 11:45pm UTC](https://discourse.julialang.org/t/is-there-a-package-that-abstracts-the-storage-location-so-that-its-cloud-and-local-path-agnostic/67923 "2021-09-09T23:45:15Z")

</div>

Say I want to save a file somewhere on the hard drive, it’s actually not that different to saving it to a S3 bucket. E.g. save(location, object) should work regardless if the location is S3 or local path. Wonder if such…

---

## [Cuprint makes CUDA kernell Work well](https://discourse.julialang.org/t/cuprint-makes-cuda-kernell-work-well/67821)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 5:31pm UTC](https://discourse.julialang.org/t/cuprint-makes-cuda-kernell-work-well/67821 "2021-09-09T17:31:09Z")

</div>

I am developing kernel that is comparing two boolean 1 dimensional arrays looking for true positives, false positives and false negatives (details in function incr\_shmem below). And I have one bizarre error when I inc…

---

## [Flux is lagging far beyond tensorflow with a pretty basic use case](https://discourse.julialang.org/t/flux-is-lagging-far-beyond-tensorflow-with-a-pretty-basic-use-case/67942)

<div class="topic-metadata">

**Author:** [@egolep](https://discourse.julialang.org/u/egolep)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 4:43pm UTC](https://discourse.julialang.org/t/flux-is-lagging-far-beyond-tensorflow-with-a-pretty-basic-use-case/67942 "2021-09-09T16:43:36Z")

</div>

I was trying to move from a Python ML/DL stack to Julia (so from something like sklearn+pytorch/tensorflow to MLJ+Flux). So I decided to rewrite the Kaggle courses in Julia, switching from the Python libraries to the J…

---

## [Makie.jl: travelling through an attractor (or Axis3)](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 4:18pm UTC](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936 "2021-09-09T16:18:34Z")

</div>

Hi, I have a 3d line plot that looks as follows: I know the ax.azimuth and ax.elevation I need to set to end up in this orientation. What I want to do now is somehow (no idea how!) animate the camera going through …

---

## [PG fails to sample properly with acclogp!](https://discourse.julialang.org/t/pg-fails-to-sample-properly-with-acclogp/67924)

<div class="topic-metadata">

**Author:** [@sami1](https://discourse.julialang.org/u/sami1)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 3:33pm UTC](https://discourse.julialang.org/t/pg-fails-to-sample-properly-with-acclogp/67924 "2021-09-09T15:33:49Z")

</div>

Hello, I’m currently trying to sample from a posterior with a mixture of differentiable and discrete parameters, some of them I can’t marginalize. I tried to marginalize the one I could using acclogp!, and sample the re…

---

## [ODE model in Turing](https://discourse.julialang.org/t/ode-model-in-turing/67929)

<div class="topic-metadata">

**Author:** [@yunus](https://discourse.julialang.org/u/yunus)\
**Replies:** 3\
**Last updated:** [September 9, 2021, 2:27pm UTC](https://discourse.julialang.org/t/ode-model-in-turing/67929 "2021-09-09T14:27:58Z")

</div>

Hi everyone, I’m new to Julia and would like to use the Turing package for Bayesian inference on high dimensional ordinary differential equations. With this in mind, efficiency is key. To get started I implemented a li…

---

## [How to plot contour in an arbitrary shape of area?](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 1:50pm UTC](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902 "2021-09-09T13:50:02Z")

</div>

How can I use contour to plot a contour in an arbitrary shape, say, a parallelogram? A simple example is: I tried contour!(xgrid, ygrid, zs) but it seems contour can only take vector-like objects, such as range rathe…

---

## [Plots.jl annotations location in a type @recipe](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 8:27am UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941 "2021-09-09T08:27:20Z")

</div>

hi all, (was posted on Plots.jl gitter) how can I specify the annotations position when i want to label points inside a type recipe? i found that adding this to my @series block works: series\_annotations := \["$i" for i…

---

## [Different interpolations in Ferrite.jl](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 8:25am UTC](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913 "2021-09-09T08:25:21Z")

</div>

In Ferrite.jl when initializing CellValues like CellScalarValues or CellVectorValues one supplies a quadrature rule along with a function interpolation. According to the documentation there is an optional argument geom\_i…

---

## [Reset color cycle with RecipesBase](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 6:01pm UTC](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706 "2021-07-15T18:01:57Z")

</div>

Say I define a struct Example like: struct Example fields end example = Example(\[rand(3), rand(3), rand(3)\]) Using RecipesBase, I can define a plot recipe that allows me to plot each component of such a struct: us…

---

## [How to update coordinates and colors in a type recipe?](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213)

<div class="topic-metadata">

**Author:** [@SebastianM-C](https://discourse.julialang.org/u/SebastianM-C)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 9:51am UTC](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213 "2021-03-30T09:51:15Z")

</div>

I want to create a type recipe which will produce a scatter plot with a variable number of points. I tried to use WGLMakie with the code below using WGLMakie using JSServe using Markdown using JSServe.DOM JSServe.brows…

---

## [Makie change axis appearance in plot recipe](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 0\
**Last updated:** [November 9, 2019, 5:49pm UTC](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897 "2019-11-09T17:49:09Z")

</div>

Is there a way to change the axis appearance in a plot recipe? Suppose I have @recipe(MyPlot, x, y) do scene Theme( plot\_color = :red ) end function AbstractPlotting.plot!(plot::MyPlot) # normal pl…

---

## [Same random sequence on GPU and CPU?](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 5:47pm UTC](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881 "2021-09-08T17:47:35Z")

</div>

is there a way to generate the same random sequence of numbers on a GPU as on the CPU? i was hoping i could just use rng = Random.default\_rng() as the generator for both GPU and CPU vectors, but while it doesn’t emit an…

---

## [String labels in the x axis](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 3:52pm UTC](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880 "2021-09-08T15:52:03Z")

</div>

Hi, I’m trying to make a plot with a numerical series on the y axis and a string series on the x axis. The x series is a vector like this, imported which is extracted from a data frame: 88-element Vector{Any}: "1997 Q…

---

## [UndefVarError while importing CUDA](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872)

<div class="topic-metadata">

**Author:** [@Hamza\_Coban](https://discourse.julialang.org/u/Hamza_Coban)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 3:15pm UTC](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872 "2021-09-08T15:15:11Z")

</div>

Hi all, I have issues on importing CUDA package. Only active packages are Knet and CUDA. The error as follows when I run “import CUDA” : Info: Precompiling CUDA \[052768ef-5323-5732-b1bb-66c8b64840ba\] └ @ Base loading.…

---

## [\[ANN\] CSV.jl 0.9 Release](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 4\
**Last updated:** [September 8, 2021, 2:30pm UTC](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844 "2021-09-08T14:30:20Z")

</div>

Hello all, We’re pleased to present the 0.9 release of CSV.jl. Highlights include: Big internals refactoring to simplify code, make maintenance/future feature work easier, and make current features a little more robu…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=336)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=338)
