# Specific Domains

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

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

**Page:** 168

---

## [\`mode\` and \`modes\` fail in Distributions.jl](https://discourse.julialang.org/t/mode-and-modes-fail-in-distributions-jl/103634)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 9:41am UTC](https://discourse.julialang.org/t/mode-and-modes-fail-in-distributions-jl/103634 "2023-09-08T09:41:29Z")

</div>

The Distributions.jl package does not calculate correctly the theoretical mode and/or modes under models like Binomial, Poisson and NegativeBinomial here some examples: using Distributions ## Example 1 B = Binomial(3, …

---

## [Predicting missing physics term for discrete time dynamical system](https://discourse.julialang.org/t/predicting-missing-physics-term-for-discrete-time-dynamical-system/103595)

<div class="topic-metadata">

**Author:** [@kunal](https://discourse.julialang.org/u/kunal)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 4:18am UTC](https://discourse.julialang.org/t/predicting-missing-physics-term-for-discrete-time-dynamical-system/103595 "2023-09-08T04:18:24Z")

</div>

My use case is very much similar to Using DiffEqFlux.jl for system identification with partially known system dynamics . However my objective is to utilize this in case of a discrete time space system. I was following t…

---

## [Second order derivatives with ChainRules](https://discourse.julialang.org/t/second-order-derivatives-with-chainrules/103606)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 1:48pm UTC](https://discourse.julialang.org/t/second-order-derivatives-with-chainrules/103606 "2023-09-07T13:48:54Z")

</div>

How can I get the second order derivarive of a function using ChainRules? Bellow is my approach for the sin function. See the following code: using ChainRules using ChainRulesCore # from the docs, first derivative of …

---

## [GLMakie + 4K displays](https://discourse.julialang.org/t/glmakie-4k-displays/103590)

<div class="topic-metadata">

**Author:** [@lgmendesDynamics](https://discourse.julialang.org/u/lgmendesDynamics)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 5:57am UTC](https://discourse.julialang.org/t/glmakie-4k-displays/103590 "2023-09-07T05:57:24Z")

</div>

Is there a correspondent option in GLMakie for the px\_per\_unit in the CairoMakie? To have good quality images (sharper) in a 4K display, I need to set px\_per\_unit=4 in CairoMakie. Currently (default configuration) the…

---

## [How to use ParentScope with arrays](https://discourse.julialang.org/t/how-to-use-parentscope-with-arrays/103579)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 2\
**Last updated:** [September 6, 2023, 5:49pm UTC](https://discourse.julialang.org/t/how-to-use-parentscope-with-arrays/103579 "2023-09-06T17:49:10Z")

</div>

This used to work in ModelingToolkit 8.65.0 but stopped in 8.66.0. Was it ever supposed to work? Is there a way to move array variables up the hierarchy? @parameters a\[1:2\]=\[1, 2\] b=4 c=1 @variables t x(t)=ParentScope(a…

---

## [What are the advantages of using ModelingToolkit to make and solve ODEProblems?](https://discourse.julialang.org/t/what-are-the-advantages-of-using-modelingtoolkit-to-make-and-solve-odeproblems/103563)

<div class="topic-metadata">

**Author:** [@markjholmes](https://discourse.julialang.org/u/markjholmes)\
**Replies:** 7\
**Last updated:** [September 6, 2023, 5:07pm UTC](https://discourse.julialang.org/t/what-are-the-advantages-of-using-modelingtoolkit-to-make-and-solve-odeproblems/103563 "2023-09-06T17:07:42Z")

</div>

For context, I come from an R background using the deSolve package. The first examples for ModelingToolkit make use of a specific structure of model definition, using the @parameters, @variables, @named macros. The gene…

---

## [Lines outside the box of Axis3 CairoMakie](https://discourse.julialang.org/t/lines-outside-the-box-of-axis3-cairomakie/103566)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 3\
**Last updated:** [September 6, 2023, 3:38pm UTC](https://discourse.julialang.org/t/lines-outside-the-box-of-axis3-cairomakie/103566 "2023-09-06T15:38:56Z")

</div>

Hello, i have image: I using xlims and ylims and get image: How can i fix lines which outside the box? Thank you for helps

---

## [Is there a Julia function that returns h5 group structures à la h5dump?](https://discourse.julialang.org/t/is-there-a-julia-function-that-returns-h5-group-structures-a-la-h5dump/102778)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 10\
**Last updated:** [September 6, 2023, 8:18am UTC](https://discourse.julialang.org/t/is-there-a-julia-function-that-returns-h5-group-structures-a-la-h5dump/102778 "2023-09-06T08:18:21Z")

</div>

I’m looking for a function that maps h5 data structures, i.e. variable paths, names and Types, and attribute paths, names and Types. This would be similar to h5dump.

---

## [Custom Flux Layer Connect](https://discourse.julialang.org/t/custom-flux-layer-connect/36262)

<div class="topic-metadata">

**Author:** [@TobiS](https://discourse.julialang.org/u/TobiS)\
**Replies:** 3\
**Last updated:** [September 6, 2023, 7:56am UTC](https://discourse.julialang.org/t/custom-flux-layer-connect/36262 "2023-09-06T07:56:19Z")

</div>

Hello everyone, I would like to implement the architecture of N-BEATS network (https://arxiv.org/pdf/1905.10437.pdf) in julia Flux. A simple example of a part of the architecture is shown in the following figure. Is…

---

## [Handling prematurely terminated ODE integration in parameter estimation](https://discourse.julialang.org/t/handling-prematurely-terminated-ode-integration-in-parameter-estimation/103514)

<div class="topic-metadata">

**Author:** [@Neodym](https://discourse.julialang.org/u/Neodym)\
**Replies:** 3\
**Last updated:** [September 5, 2023, 10:25pm UTC](https://discourse.julialang.org/t/handling-prematurely-terminated-ode-integration-in-parameter-estimation/103514 "2023-09-05T22:25:30Z")

</div>

Hi, I’m trying to estimate parameters of an ODE model using DifferentialEquations, SciMLSensitivity, and Optimization packages. In particular, I’ve found that Ipopt works quite well for my problem. Sometimes, though, t…

---

## [Sort elements by frequency in julia](https://discourse.julialang.org/t/sort-elements-by-frequency-in-julia/103433)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [September 5, 2023, 9:21pm UTC](https://discourse.julialang.org/t/sort-elements-by-frequency-in-julia/103433 "2023-09-05T21:21:20Z")

</div>

I want to sort elements by frequency . For example let x = \["a", "d", "d", "c", "c", "c", "f", "b", "b" ,"b", "b"\] I want to have output sorted as x = \["b", "b" ,"b", "b","c", "c", "c, "d", "d", "a", "f"\] where we ha…

---

## [A native Julia package for satellite images?](https://discourse.julialang.org/t/a-native-julia-package-for-satellite-images/44689)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 20\
**Last updated:** [September 5, 2023, 8:44pm UTC](https://discourse.julialang.org/t/a-native-julia-package-for-satellite-images/44689 "2023-09-05T20:44:54Z")

</div>

I use satellite data from a few sources (NASA- Landsat, etc., ESA - Sentinel1/2, etc.), and I know that there are a few ways to handle this in Julia (like GeoArrays.jl ArchGDAL.jl). But are there any thoughts to developi…

---

## [Blog Post: Tight link between code and math, while keeping speed](https://discourse.julialang.org/t/blog-post-tight-link-between-code-and-math-while-keeping-speed/103548)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 0\
**Last updated:** [September 5, 2023, 4:43pm UTC](https://discourse.julialang.org/t/blog-post-tight-link-between-code-and-math-while-keeping-speed/103548 "2023-09-05T16:43:24Z")

</div>

I wrote a blog post about how Julia makes it possible to maintain a tight connection between the code and the written equations of a model, without sacrificing speed. The goal was to demonstrate an approach I use to str…

---

## [Mixed NN and functions fail with NeuralPDE](https://discourse.julialang.org/t/mixed-nn-and-functions-fail-with-neuralpde/103447)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 7\
**Last updated:** [September 5, 2023, 3:13pm UTC](https://discourse.julialang.org/t/mixed-nn-and-functions-fail-with-neuralpde/103447 "2023-09-05T15:13:04Z")

</div>

Hi. I’m trying to use NeuralPDE to approximate a solution to a PDE containing both Neural nets and functions. Something goes wrong, can you help ? I am new to NeuralPDE, so it might just be a newbie error. Here is the …

---

## [Any examples applying Physics Informed Neural Networks to ODEs?](https://discourse.julialang.org/t/any-examples-applying-physics-informed-neural-networks-to-odes/103512)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 2:04pm UTC](https://discourse.julialang.org/t/any-examples-applying-physics-informed-neural-networks-to-odes/103512 "2023-09-05T14:04:25Z")

</div>

I recently have been involved in PINNs and their applications. While I understand the mathematics of NNs, ODE solvers, PDEs, etc… I have very little experience in implementing them and in Julia especially. Does anyone ha…

---

## [Creating Variables from a Vector of Tuples and Naming Them](https://discourse.julialang.org/t/creating-variables-from-a-vector-of-tuples-and-naming-them/103525)

<div class="topic-metadata">

**Author:** [@nemoincognito](https://discourse.julialang.org/u/nemoincognito)\
**Replies:** 8\
**Last updated:** [September 5, 2023, 3:22am UTC](https://discourse.julialang.org/t/creating-variables-from-a-vector-of-tuples-and-naming-them/103525 "2023-09-05T03:22:00Z")

</div>

I have converted some PuLP code to Julia and have three vectors of Tuples. supplylist: 149988-element Vector{Tuple{String15, String31}} flowslist: 499572-element Vector{Tuple{String15, String15, String31}} edgelist: …

---

## [How to put text on a Gantt chart (Vega-Lite)?](https://discourse.julialang.org/t/how-to-put-text-on-a-gantt-chart-vega-lite/103515)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 1\
**Last updated:** [September 4, 2023, 5:36pm UTC](https://discourse.julialang.org/t/how-to-put-text-on-a-gantt-chart-vega-lite/103515 "2023-09-04T17:36:39Z")

</div>

Hi, This plot using Vega-Lite for Gantt charts is almost perfect for me, but I want the text of the task on the plot. Here is my code with the image generated. using DataFrames, VegaLite # Create a DataFrame df = Data…

---

## [Grouping plots to be able to overwrite them with new data](https://discourse.julialang.org/t/grouping-plots-to-be-able-to-overwrite-them-with-new-data/103397)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 3\
**Last updated:** [September 4, 2023, 4:16pm UTC](https://discourse.julialang.org/t/grouping-plots-to-be-able-to-overwrite-them-with-new-data/103397 "2023-09-04T16:16:18Z")

</div>

When visualising 3D data I would like to keep some geometrical structures fixed (plotted with a series of functions mesh!), while to be able to overwrite a set of plots made with lines!, text!, etc. with new data. Is it…

---

## [PlotlyJS question: How to change color of stacked bar](https://discourse.julialang.org/t/plotlyjs-question-how-to-change-color-of-stacked-bar/103495)

<div class="topic-metadata">

**Author:** [@nnguyengiatan](https://discourse.julialang.org/u/nnguyengiatan)\
**Replies:** 2\
**Last updated:** [September 4, 2023, 8:08am UTC](https://discourse.julialang.org/t/plotlyjs-question-how-to-change-color-of-stacked-bar/103495 "2023-09-04T08:08:05Z")

</div>

Hi all, I am using PlotlyJS.jl and trying to change color of stacked bar chart. p\_turnover\_s = plot( turnover\_size\_df, x=:year, y=:mean\_turnover, color=:size, text=:mean\_t…

---

## [Stream large file via HTTP](https://discourse.julialang.org/t/stream-large-file-via-http/103486)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 0\
**Last updated:** [September 3, 2023, 4:45pm UTC](https://discourse.julialang.org/t/stream-large-file-via-http/103486 "2023-09-03T16:45:57Z")

</div>

Hello all, my goal is to stream a large file via a HTTP GET request to a client. The file is potentially larger than my server’s memory. Related to that, I found the following on Stack Overflow: stream - Send a large fi…

---

## [Symbolics.jl expressions that don't reduce to single type](https://discourse.julialang.org/t/symbolics-jl-expressions-that-dont-reduce-to-single-type/102551)

<div class="topic-metadata">

**Author:** [@Eemilp](https://discourse.julialang.org/u/Eemilp)\
**Replies:** 5\
**Last updated:** [September 3, 2023, 4:27pm UTC](https://discourse.julialang.org/t/symbolics-jl-expressions-that-dont-reduce-to-single-type/102551 "2023-09-03T16:27:33Z")

</div>

Hi, I’m trying to use Symbolics.jl to simplify some expressions in the domain of quantum mechanics. The problem I’m facing is that I would like to simplify a partial expression that does not exactly reduce to a single t…

---

## [@Maintainer of Julia Graphics](https://discourse.julialang.org/t/maintainer-of-julia-graphics/103246)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 16\
**Last updated:** [September 3, 2023, 10:55am UTC](https://discourse.julialang.org/t/maintainer-of-julia-graphics/103246 "2023-09-03T10:55:34Z")

</div>

Can anybody from the Julia Graphics team transition the QML binding, please: Do we know, who has admin rights, and can we ping them? Thanks

---

## [How Preconditioners work for multiple eigenpairs](https://discourse.julialang.org/t/how-preconditioners-work-for-multiple-eigenpairs/103456)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 4\
**Last updated:** [September 3, 2023, 6:16am UTC](https://discourse.julialang.org/t/how-preconditioners-work-for-multiple-eigenpairs/103456 "2023-09-03T06:16:25Z")

</div>

I am using Preconditioners.jl to precondition the eigensolver lobpcg in IterativeSolvers.jl. But the preconditioners didn’t worked for more than one vectors. Any ideas? This works when I need only one eigenpair. using …

---

## [Error with ODE Tableaus by DiffEqDevTools](https://discourse.julialang.org/t/error-with-ode-tableaus-by-diffeqdevtools/103448)

<div class="topic-metadata">

**Author:** [@simon79](https://discourse.julialang.org/u/simon79)\
**Replies:** 5\
**Last updated:** [September 2, 2023, 10:46pm UTC](https://discourse.julialang.org/t/error-with-ode-tableaus-by-diffeqdevtools/103448 "2023-09-02T22:46:16Z")

</div>

I am having errors with the tableau methods for explicitRK using DiffEqDevTools listed in tableau-methods-list The code using DiffEqBase using DiffEqDevTools using OrdinaryDiffEq using ODEInterfaceDiffEq using SciMLB…

---

## [Issue of volume render with large 3D data](https://discourse.julialang.org/t/issue-of-volume-render-with-large-3d-data/103395)

<div class="topic-metadata">

**Author:** [@dora\_ho](https://discourse.julialang.org/u/dora_ho)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 6:26pm UTC](https://discourse.julialang.org/t/issue-of-volume-render-with-large-3d-data/103395 "2023-09-02T18:26:53Z")

</div>

Hi, I was trying to volume render a very large 3D data withGLMakie. However, I found this exists a limit for the volume render. This is my plotting scripts GLMakie.volume!(x, y, z, 3DArray, algorithm=:mip , absorpt…

---

## [GLMakie: Run a function when slider is released](https://discourse.julialang.org/t/glmakie-run-a-function-when-slider-is-released/103295)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 2:46pm UTC](https://discourse.julialang.org/t/glmakie-run-a-function-when-slider-is-released/103295 "2023-09-02T14:46:06Z")

</div>

Quite a simple question: Is it possible to run a function specifically when a slider is released? A way to check whether the slider is currently being dragged would suffice. I couldn’t find a way to do this.

---

## [Slow MCMC sampling of complex polynomial model \[Turing.jl\]](https://discourse.julialang.org/t/slow-mcmc-sampling-of-complex-polynomial-model-turing-jl/102184)

<div class="topic-metadata">

**Author:** [@rubisco](https://discourse.julialang.org/u/rubisco)\
**Replies:** 2\
**Last updated:** [September 2, 2023, 10:25am UTC](https://discourse.julialang.org/t/slow-mcmc-sampling-of-complex-polynomial-model-turing-jl/102184 "2023-09-02T10:25:25Z")

</div>

In my model functions I use several complicated functions (long equations for Q and cd functions with many terms). Basically \[look in Q\_generated function\] they are some polynomials of v and w parameter - where v is scal…

---

## [Help with understanding Turing's predict function](https://discourse.julialang.org/t/help-with-understanding-turings-predict-function/102021)

<div class="topic-metadata">

**Author:** [@JanG](https://discourse.julialang.org/u/JanG)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 9:42am UTC](https://discourse.julialang.org/t/help-with-understanding-turings-predict-function/102021 "2023-09-02T09:42:28Z")

</div>

Hi everybody, I played around a bit with the predict() function in Turing and encountered some behaviour I don’t quite understand. When I use it to produce new output based on a chain, it only seems to take some of the …

---

## [Within-chain parallelization with Turing.jl](https://discourse.julialang.org/t/within-chain-parallelization-with-turing-jl/103402)

<div class="topic-metadata">

**Author:** [@Nicolo\_Foppa](https://discourse.julialang.org/u/Nicolo_Foppa)\
**Replies:** 6\
**Last updated:** [September 1, 2023, 9:56pm UTC](https://discourse.julialang.org/t/within-chain-parallelization-with-turing-jl/103402 "2023-09-01T21:56:54Z")

</div>

Hi everyone, I’m a new Turing user and I read that there is a possible way to parallelize the MCMC of a single chain on multiple threads but I’m not able to do that. Do you have any references that I can use to have a b…

---

## [Error running Museinference.jl example](https://discourse.julialang.org/t/error-running-museinference-jl-example/103360)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 6:58pm UTC](https://discourse.julialang.org/t/error-running-museinference-jl-example/103360 "2023-09-01T18:58:53Z")

</div>

Not sure if this should be a new topic. It follows on from https://discourse.julialang.org/t/ann-museinference-jl-drop-in-replacement-for-hmc-vi-try-it-on-your-problem/73468. When I run the example code @model function…

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

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