# Specific Domains

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

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

**Page:** 161

---

## [Accuracy of ModelingToolkit linearizations](https://discourse.julialang.org/t/accuracy-of-modelingtoolkit-linearizations/104902)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [October 16, 2023, 9:32am UTC](https://discourse.julialang.org/t/accuracy-of-modelingtoolkit-linearizations/104902 "2023-10-16T09:32:34Z")

</div>

I have a non-linear model with about 16 equations. I linearize it with different inputs and outputs around different operating point. I use both the linearize() function and the linerize\_symbolic() function. This works a…

---

## [Plotting "hierachically" organized variables](https://discourse.julialang.org/t/plotting-hierachically-organized-variables/104978)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 11:44pm UTC](https://discourse.julialang.org/t/plotting-hierachically-organized-variables/104978 "2023-10-15T23:44:38Z")

</div>

Dear community, is there an elegant/easy/concise way of plotting some y variables against an x variable, where y variables should either be divided into facets or colors, i.e. for a dataframe and defined facets: a=…

---

## [Accessing cost data in UnitCommitment.jl](https://discourse.julialang.org/t/accessing-cost-data-in-unitcommitment-jl/103510)

<div class="topic-metadata">

**Author:** [@skelly5](https://discourse.julialang.org/u/skelly5)\
**Replies:** 3\
**Last updated:** [October 15, 2023, 11:35pm UTC](https://discourse.julialang.org/t/accessing-cost-data-in-unitcommitment-jl/103510 "2023-10-15T23:35:11Z")

</div>

I’m trying to access data for generator cost in the UnitCommitment.jl. I was wondering, in matpower/case2383wp/2017-02-01, why do some of the generators (such as generators 12 and 39) have an empty cost\_segments, while o…

---

## [Solving a neoclassical growth model via PATHSolver (but solution is wrong)](https://discourse.julialang.org/t/solving-a-neoclassical-growth-model-via-pathsolver-but-solution-is-wrong/104979)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 9:51pm UTC](https://discourse.julialang.org/t/solving-a-neoclassical-growth-model-via-pathsolver-but-solution-is-wrong/104979 "2023-10-15T21:51:23Z")

</div>

Hi. I am solving the following neoclassical growth model via the PATHSolver (i.e. MCP formulation). I know the solution is wrong as consumption is unusually high and not inline with what I get from GAMS. I suspect this s…

---

## [Incorporate a javascript library into a Genie.jl app](https://discourse.julialang.org/t/incorporate-a-javascript-library-into-a-genie-jl-app/104957)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [October 14, 2023, 10:05pm UTC](https://discourse.julialang.org/t/incorporate-a-javascript-library-into-a-genie-jl-app/104957 "2023-10-14T22:05:10Z")

</div>

How would I add the JavaScript library X6 into a Stipple app? There are no vue components for this library, just pure JavaScript. Do I have to put that into the js-methods macros e.g. @methods? Is there a way to includ…

---

## [Makie: how to remove a legend from an axis](https://discourse.julialang.org/t/makie-how-to-remove-a-legend-from-an-axis/65876)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [October 14, 2023, 6:28pm UTC](https://discourse.julialang.org/t/makie-how-to-remove-a-legend-from-an-axis/65876 "2023-10-14T18:28:22Z")

</div>

Hi, I’m making a dashboard and I’m using a lot of mutating functions to make an interactive plot that changes its content based on a menu selection. When I change the plot, I remove the former one from the axis using emp…

---

## [Calling Cantera using PyCall from within DifferentialEquations function](https://discourse.julialang.org/t/calling-cantera-using-pycall-from-within-differentialequations-function/104942)

<div class="topic-metadata">

**Author:** [@NikoBiele](https://discourse.julialang.org/u/NikoBiele)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 6:14am UTC](https://discourse.julialang.org/t/calling-cantera-using-pycall-from-within-differentialequations-function/104942 "2023-10-14T06:14:27Z")

</div>

Hi, I’m trying to simulate the combustion of hydrogen using Cantera from Julia via PyCall. But I’m having trouble using PyCall from within my DifferentialEquations function. I have translated this (custom.py | Cantera) …

---

## [Matrix \* Vector randomvar in RxInfer model](https://discourse.julialang.org/t/matrix-vector-randomvar-in-rxinfer-model/104945)

<div class="topic-metadata">

**Author:** [@gvdr](https://discourse.julialang.org/u/gvdr)\
**Replies:** 0\
**Last updated:** [October 14, 2023, 3:24am UTC](https://discourse.julialang.org/t/matrix-vector-randomvar-in-rxinfer-model/104945 "2023-10-14T03:24:58Z")

</div>

Hello. I’m trying to extend one of the examples in RxInfer but hitting a wall. I’m working starting from the Gaussian Linear Dynamical System example. In particular I’m trying to generalise it so that we don’t assume t…

---

## [Makie on() do block does not see a variable](https://discourse.julialang.org/t/makie-on-do-block-does-not-see-a-variable/104918)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 2\
**Last updated:** [October 13, 2023, 7:58pm UTC](https://discourse.julialang.org/t/makie-on-do-block-does-not-see-a-variable/104918 "2023-10-13T19:58:44Z")

</div>

I am in this situation: on(topbutton\[4\].clicks) do click lma,lmaheader,lmafile,tim,xy,tz = load\_lma\_data(lmafolder,lmafile,1) selection\[\] = lma.qua .&& (0 .\< tim .\<= 600) end Result: Error in callback: Undef…

---

## [Makie line plots using colormaps?](https://discourse.julialang.org/t/makie-line-plots-using-colormaps/104908)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 8:23pm UTC](https://discourse.julialang.org/t/makie-line-plots-using-colormaps/104908 "2023-10-12T20:23:34Z")

</div>

Hi, I would like to produce a line plot where the color of each line is taken from a colormap, like batlow , see Colors · Makie I’ve tried lines(1:20, color=:batlow10\[3\]) and variations thereof but couldn’t get it to…

---

## [Plots.jl colormap transparency](https://discourse.julialang.org/t/plots-jl-colormap-transparency/104876)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 6\
**Last updated:** [October 12, 2023, 3:28pm UTC](https://discourse.julialang.org/t/plots-jl-colormap-transparency/104876 "2023-10-12T15:28:21Z")

</div>

Using the GR backend, I am trying to recreate the following plot style: Note that the lower end of the colormap is transparent. There are some ideas for colormap transparency that however make the whole colorpalette t…

---

## [DifferentialEquations - vector or one by one on rhs](https://discourse.julialang.org/t/differentialequations-vector-or-one-by-one-on-rhs/104886)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 1:00pm UTC](https://discourse.julialang.org/t/differentialequations-vector-or-one-by-one-on-rhs/104886 "2023-10-12T13:00:51Z")

</div>

I wonder what the difference is between function lorenz!(du, u, p, t) du = \[10.0 \* (u\[2\] - u\[1\]), u\[1\] \* (28.0 - u\[3\]) - u\[2\], u\[1\] \* u\[2\] - (8 / 3) \* u\[3\]\] end and function lorenz!(du, u, p, t) du\[1\] = 10.0 \*…

---

## [MTK & Standard Library & independent variable, etc](https://discourse.julialang.org/t/mtk-standard-library-independent-variable-etc/104885)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 8:06am UTC](https://discourse.julialang.org/t/mtk-standard-library-independent-variable-etc/104885 "2023-10-12T08:06:27Z")

</div>

Thanks for all help with MTK so far – I’m learning quite a bit just by posing the questions… In Modelica, the independent variable has to be denoted time, and time differentiation is der(). In MTK, the choice of indepe…

---

## [Filtering variables on model copy](https://discourse.julialang.org/t/filtering-variables-on-model-copy/104843)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 7:44am UTC](https://discourse.julialang.org/t/filtering-variables-on-model-copy/104843 "2023-10-12T07:44:57Z")

</div>

I am looking to take a model model\_1 and “duplicate” it into model\_2 (using copy\_model) while only keeping a specific part of the original model. I know that I can use filter\_constraints to mask out constraints that I …

---

## [Update par after every time step](https://discourse.julialang.org/t/update-par-after-every-time-step/104884)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 6:28am UTC](https://discourse.julialang.org/t/update-par-after-every-time-step/104884 "2023-10-12T06:28:48Z")

</div>

When I use DifferentialEquations.jl to solve a set of stiff coupled ODEs, my function is something like function f!(du, u, par, t) V = g(u, par) # calculate V based on u and some other parameters du .= ??? # some…

---

## [MTK & Standard Library & Analysis points](https://discourse.julialang.org/t/mtk-standard-library-analysis-points/104853)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [October 12, 2023, 6:15am UTC](https://discourse.julialang.org/t/mtk-standard-library-analysis-points/104853 "2023-10-12T06:15:28Z")

</div>

I’m trying to figure out how to define “analysis points” in my MTK models, and how to use such to linearize the model. Initial questions: Is the “analysis points” facility part of the standard library, or of MTK? It s…

---

## [How do I interpret Dagger.jl benchmark results?](https://discourse.julialang.org/t/how-do-i-interpret-dagger-jl-benchmark-results/104877)

<div class="topic-metadata">

**Author:** [@schnetter](https://discourse.julialang.org/u/schnetter)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 9:38pm UTC](https://discourse.julialang.org/t/how-do-i-interpret-dagger-jl-benchmark-results/104877 "2023-10-11T21:38:28Z")

</div>

I wanted to understand the performance of Dagger.jl on my laptop and ran its benchmarks there, as described in the documentation. I ran with 1 process and 8 threads (on 8 cores). This produced this output: benchmark res…

---

## [Error in NL Optimization involving integral of Incomplete Beta Function](https://discourse.julialang.org/t/error-in-nl-optimization-involving-integral-of-incomplete-beta-function/104627)

<div class="topic-metadata">

**Author:** [@thvo1304](https://discourse.julialang.org/u/thvo1304)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 6:25pm UTC](https://discourse.julialang.org/t/error-in-nl-optimization-involving-integral-of-incomplete-beta-function/104627 "2023-10-11T18:25:20Z")

</div>

Hello everyone, I’m trying to build an optimization problem using Julia but keep getting error. My objective function is: Max ∫01 Bx(n - λn, λn + 1) ⁄ Bx(n - &lambda - 1;n…

---

## [Extracting vector of contour lines from Makie.contour?](https://discourse.julialang.org/t/extracting-vector-of-contour-lines-from-makie-contour/104866)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 5:37pm UTC](https://discourse.julialang.org/t/extracting-vector-of-contour-lines-from-makie-contour/104866 "2023-10-11T17:37:43Z")

</div>

Hi, I’d like to extract contour lines from a Makie contour plot as a vector, like the black lines in the plot here. Is there any way to do that?

---

## [Makie errorbars in legend look awkward](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 3\
**Last updated:** [October 11, 2023, 2:10pm UTC](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832 "2023-10-11T14:10:50Z")

</div>

Hi, somehow I cannot find the solution to this problem online. I want a simple plot with errorbars which are shown in the legend: fig = Figure() ax = Axis(fig\[1,1\]) errorbars!(ax,1:10,rand(10),0.05\*ones(10),color = :…

---

## [Agents with an extent](https://discourse.julialang.org/t/agents-with-an-extent/104840)

<div class="topic-metadata">

**Author:** [@FMP](https://discourse.julialang.org/u/FMP)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 12:37pm UTC](https://discourse.julialang.org/t/agents-with-an-extent/104840 "2023-10-11T12:37:28Z")

</div>

Hello! I am currently working on an ABM for growing bacteria using Agents.jl (akin to the, now outdated, example in the documentation) and it got me wondering whether it is/could be possible to have an “extensive” agent…

---

## [Odd thread calling behavior on HPC](https://discourse.julialang.org/t/odd-thread-calling-behavior-on-hpc/104789)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 12:23pm UTC](https://discourse.julialang.org/t/odd-thread-calling-behavior-on-hpc/104789 "2023-10-11T12:23:24Z")

</div>

I’ve been running Julia on my university’s HPC using a self-installed version of Julia (through juliaup) and have noticed odd thread calling behavior. When running the following Julia script a = zeros(10) Threads.@thre…

---

## [Bring back to life Julia 0.4 code](https://discourse.julialang.org/t/bring-back-to-life-julia-0-4-code/104820)

<div class="topic-metadata">

**Author:** [@berceanu](https://discourse.julialang.org/u/berceanu)\
**Replies:** 3\
**Last updated:** [October 11, 2023, 11:23am UTC](https://discourse.julialang.org/t/bring-back-to-life-julia-0-4-code/104820 "2023-10-11T11:23:01Z")

</div>

I am trying to port an older Julia 0.4 code that uses ODE.jl and I find it stumbles on this line tout, aout = ode45((t,a)-\>F(t,a, N,p,q,m₀,n₀,J,σ,Ω,κ,f), a₀, \[0., 10\]) The code is a single, small file. The error I get …

---

## [Tube plots?](https://discourse.julialang.org/t/tube-plots/65999)

<div class="topic-metadata">

**Author:** [@mcmwright](https://discourse.julialang.org/u/mcmwright)\
**Replies:** 20\
**Last updated:** [October 11, 2023, 10:38am UTC](https://discourse.julialang.org/t/tube-plots/65999 "2023-10-11T10:38:40Z")

</div>

I use a lot of 3D line plots in my teaching, and I’ve been trying different visualization packages to make them . Is there anything in the Julia graphics ecosystem that could show the line as a ‘tube’ with a lighting mod…

---

## [Normalizing a transfer function](https://discourse.julialang.org/t/normalizing-a-transfer-function/104834)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [October 11, 2023, 10:20am UTC](https://discourse.julialang.org/t/normalizing-a-transfer-function/104834 "2023-10-11T10:20:24Z")

</div>

Is there already a function to normalize a transfer function? I have: TransferFunction{Continuous, ControlSystemsBase.SisoRational{Float64}} -951.729934283765s^2 -----------------------…

---

## [JuMP get number of iterations](https://discourse.julialang.org/t/jump-get-number-of-iterations/8452)

<div class="topic-metadata">

**Author:** [@nantonel](https://discourse.julialang.org/u/nantonel)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 9:05am UTC](https://discourse.julialang.org/t/jump-get-number-of-iterations/8452 "2023-10-11T09:05:40Z")

</div>

Is there a way to access the number of iterations apart from the log of the solver? I’m comparing different solvers and I would like to store in a vector the number of iteration each one takes. I couldn’t really find a…

---

## [\[ANN\] Ephemerides.jl - A pure Julia binary ephemeris reader](https://discourse.julialang.org/t/ann-ephemerides-jl-a-pure-julia-binary-ephemeris-reader/104830)

<div class="topic-metadata">

**Author:** [@MicheleCeresoli](https://discourse.julialang.org/u/MicheleCeresoli)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 7:25am UTC](https://discourse.julialang.org/t/ann-ephemerides-jl-a-pure-julia-binary-ephemeris-reader/104830 "2023-10-11T07:25:04Z")

</div>

Hello everyone, I’m happy to present you Ephemerides.jl, a package that provides fast, thread-safe and allocation-free access to binary JPL SPK and PCK ephemeris files. Completely written in Julia, it enables Automatic-…

---

## [MTK - simple case with \`@mtkmodel\` and standard library doesn't work](https://discourse.julialang.org/t/mtk-simple-case-with-mtkmodel-and-standard-library-doesnt-work/104807)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 7:10am UTC](https://discourse.julialang.org/t/mtk-simple-case-with-mtkmodel-and-standard-library-doesnt-work/104807 "2023-10-11T07:10:06Z")

</div>

I’m experimenting with the new @mtkmodel in combination with the ModelingToolkitStandardLibrary. I get an error message… My case is simple: a liquid tank “class” Tank\_m with flow out given by gravity, encoded via @mtkmo…

---

## [Makie.jl as a Manim alternative?](https://discourse.julialang.org/t/makie-jl-as-a-manim-alternative/104406)

<div class="topic-metadata">

**Author:** [@savq](https://discourse.julialang.org/u/savq)\
**Replies:** 10\
**Last updated:** [October 9, 2023, 11:03pm UTC](https://discourse.julialang.org/t/makie-jl-as-a-manim-alternative/104406 "2023-10-09T23:03:00Z")

</div>

This semester I have to present a video for my Computer Algebra class, and the topic I chose is related to random walks generated by irrational numbers. Our professor suggested using Manim to animate the videos. I’m unf…

---

## [Matplotlib animation](https://discourse.julialang.org/t/matplotlib-animation/104779)

<div class="topic-metadata">

**Author:** [@Edward\_Montague](https://discourse.julialang.org/u/Edward_Montague)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 1:26am UTC](https://discourse.julialang.org/t/matplotlib-animation/104779 "2023-10-10T01:26:31Z")

</div>

Over at the matplotlib website, at the discourse, there’s an example of an animated surface function with proper perspective. You may have a use for this.

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

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