# Specific Domains

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

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

**Page:** 146

---

## [How to produce a 3D polar plot in Makie?](https://discourse.julialang.org/t/how-to-produce-a-3d-polar-plot-in-makie/107950)

<div class="topic-metadata">

**Author:** [@Daptine](https://discourse.julialang.org/u/Daptine)\
**Replies:** 7\
**Last updated:** [December 23, 2023, 12:42am UTC](https://discourse.julialang.org/t/how-to-produce-a-3d-polar-plot-in-makie/107950 "2023-12-23T00:42:16Z")

</div>

I wonder how to produce plots like the one below (a 3D array factor) using Makie? If this is not possible in Makie, any packages that support this? Thanks a lot.

---

## [Smoothing probability distribution output of network](https://discourse.julialang.org/t/smoothing-probability-distribution-output-of-network/107934)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 3\
**Last updated:** [December 22, 2023, 4:17pm UTC](https://discourse.julialang.org/t/smoothing-probability-distribution-output-of-network/107934 "2023-12-22T16:17:57Z")

</div>

I’m training a neural network with flux and outputting a probability distribution (ie. probability bins for the value of a continuous variable). The output layer is outputting the values for the bins which I then normali…

---

## [Extracting raw data from qplot](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671)

<div class="topic-metadata">

**Author:** [@alex123](https://discourse.julialang.org/u/alex123)\
**Replies:** 2\
**Last updated:** [December 22, 2023, 2:55pm UTC](https://discourse.julialang.org/t/extracting-raw-data-from-qplot/107671 "2023-12-22T14:55:16Z")

</div>

Hi, I am using Quantica for finding the band structure of twisted bilayer graphene. Here is the part of my code that finds the hamiltonian and plots the band structure: b = hamiltonian(tbg, model) |\> bands(subdiv((0, 2…

---

## [Not sure where function is going wrong](https://discourse.julialang.org/t/not-sure-where-function-is-going-wrong/107881)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 8\
**Last updated:** [December 22, 2023, 7:23am UTC](https://discourse.julialang.org/t/not-sure-where-function-is-going-wrong/107881 "2023-12-22T07:23:16Z")

</div>

Here is my code: using CUDA, Optimization, OptimizationNLopt function calc(x0,p) a = x0\[1:293\] # Convert tau to a CUDA array b = x0\[293+1:2\*293\] # Convert q0 to a CUDA array c = CUDA.zeros(293) # Create…

---

## [CUDA could not find an appropiate CUDA runtime to use](https://discourse.julialang.org/t/cuda-could-not-find-an-appropiate-cuda-runtime-to-use/97201)

<div class="topic-metadata">

**Author:** [@lepton01](https://discourse.julialang.org/u/lepton01)\
**Replies:** 7\
**Last updated:** [December 21, 2023, 7:33pm UTC](https://discourse.julialang.org/t/cuda-could-not-find-an-appropiate-cuda-runtime-to-use/97201 "2023-12-21T19:33:31Z")

</div>

Hello there. Haven’t used CUDA.jl before. I am working with some NN and wanted to see how it would perform on my GPU, if that makes any sense. After adding CUDA through the Julia Package Manager, using CUDA gives the t…

---

## [Optimization.jl Iterations](https://discourse.julialang.org/t/optimization-jl-iterations/107845)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 3\
**Last updated:** [December 21, 2023, 6:16pm UTC](https://discourse.julialang.org/t/optimization-jl-iterations/107845 "2023-12-21T18:16:12Z")

</div>

Hello, how do I extract the number of iterations from Optimization.jl (specifically the NLopt package)? Here is a sample code using Optimization, OptimizationNLopt, ModelingToolkit function calc\_sse(x0,p) return s…

---

## [How to analyze sensitivity w.r.t. the initial values?](https://discourse.julialang.org/t/how-to-analyze-sensitivity-w-r-t-the-initial-values/107580)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 9\
**Last updated:** [December 21, 2023, 5:40pm UTC](https://discourse.julialang.org/t/how-to-analyze-sensitivity-w-r-t-the-initial-values/107580 "2023-12-21T17:40:21Z")

</div>

I want to run sensitivity analysis w.r.t. the initial conditions: using DifferentialEquations, Optimization, OptimizationPolyalgorithms, SciMLSensitivity, Zygote function harm\_osc\_matrix(t::Real, p::Vector) …

---

## [Rendering Reactive{string} in StippleUI page](https://discourse.julialang.org/t/rendering-reactive-string-in-stippleui-page/107257)

<div class="topic-metadata">

**Author:** [@Ben\_Sivan](https://discourse.julialang.org/u/Ben_Sivan)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 1:57pm UTC](https://discourse.julialang.org/t/rendering-reactive-string-in-stippleui-page/107257 "2023-12-21T13:57:13Z")

</div>

Hi! I followed through the basic example of reactive UI in the GenieFramework. The very simple webapp below is a lineage tracking app of biological samples based on lineage graph. The user writes a sample name and gets…

---

## [Spatial Kernel in Julia](https://discourse.julialang.org/t/spatial-kernel-in-julia/107707)

<div class="topic-metadata">

**Author:** [@anjelinejeline](https://discourse.julialang.org/u/anjelinejeline)\
**Replies:** 28\
**Last updated:** [December 21, 2023, 1:07pm UTC](https://discourse.julialang.org/t/spatial-kernel-in-julia/107707 "2023-12-21T13:07:17Z")

</div>

Hi, I am really new to Julia, I would like to compute a spatial kernel with a resolution of 1000x1000 metres and then save the results as a raster file (“+proj=moll +lon\_0=0 +x\_0=0 +y\_0=0”). I gave it a try with the …

---

## [Lining up zeros on plot with 2 y axes](https://discourse.julialang.org/t/lining-up-zeros-on-plot-with-2-y-axes/107736)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 7\
**Last updated:** [December 21, 2023, 11:28am UTC](https://discourse.julialang.org/t/lining-up-zeros-on-plot-with-2-y-axes/107736 "2023-12-21T11:28:26Z")

</div>

Hi there, I am plotting 2 different datasets on the same plot, but using different scaled y axes, using the following code: plot(ShiSimpleSolV, idxs = \[circ\_sys.MV.q\]) plot!(twinx(), ShiSimpleSolV, idxs = \[circ\_sys.MV…

---

## [Convert nl file to mps file using JuMP](https://discourse.julialang.org/t/convert-nl-file-to-mps-file-using-jump/107885)

<div class="topic-metadata">

**Author:** [@rlacjfjin](https://discourse.julialang.org/u/rlacjfjin)\
**Replies:** 8\
**Last updated:** [December 21, 2023, 3:00am UTC](https://discourse.julialang.org/t/convert-nl-file-to-mps-file-using-jump/107885 "2023-12-21T03:00:25Z")

</div>

As in question: Why I can't read nl file with other solver · Issue #3637 · jump-dev/JuMP.jl · GitHub When I using the code: model = read\_from\_file("my\_model.nl"; use\_nlp\_block = false) A JuMP Model Maximization problem…

---

## [JuMP @constraint macro modifies existing expression](https://discourse.julialang.org/t/jump-constraint-macro-modifies-existing-expression/107864)

<div class="topic-metadata">

**Author:** [@Ethan-Russell](https://discourse.julialang.org/u/Ethan-Russell)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 9:03pm UTC](https://discourse.julialang.org/t/jump-constraint-macro-modifies-existing-expression/107864 "2023-12-20T21:03:10Z")

</div>

I have encountered cases where JuMP will modify an expression if it is used in a constraint. This seems like undesirable behavior, as the expression could be used later thinking it is the same as the original. Here is …

---

## [ForwardDiff.jl \\ Optiml.jl Newton Trust Region failing for unclear reason](https://discourse.julialang.org/t/forwarddiff-jl-optiml-jl-newton-trust-region-failing-for-unclear-reason/107799)

<div class="topic-metadata">

**Author:** [@Gabriel\_Kreindler](https://discourse.julialang.org/u/Gabriel_Kreindler)\
**Replies:** 12\
**Last updated:** [December 20, 2023, 6:32pm UTC](https://discourse.julialang.org/t/forwarddiff-jl-optiml-jl-newton-trust-region-failing-for-unclear-reason/107799 "2023-12-20T18:32:14Z")

</div>

I am trying to use Optim.jl’s NewtonTrustRegion with forward AD for computing the gradient and hessian. This fails for a reason that I don’t quite understand. I run optimize(fn\_closure, theta0, NewtonTrustRegion(), aut…

---

## [Where can I find certain matrix multiplication optimizations?](https://discourse.julialang.org/t/where-can-i-find-certain-matrix-multiplication-optimizations/107868)

<div class="topic-metadata">

**Author:** [@meisel](https://discourse.julialang.org/u/meisel)\
**Replies:** 2\
**Last updated:** [December 20, 2023, 6:24pm UTC](https://discourse.julialang.org/t/where-can-i-find-certain-matrix-multiplication-optimizations/107868 "2023-12-20T18:24:38Z")

</div>

Hi, there are a couple matrix multiplication optimizations that would have a big impact on the performance of my project. They are: Automatic coalescing of additions with multiplications, since \*gemm APIs typically all…

---

## [Differentiating random walk probability w.t.r. rate of jump](https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116)

<div class="topic-metadata">

**Author:** [@aner-sanchez](https://discourse.julialang.org/u/aner-sanchez)\
**Replies:** 16\
**Last updated:** [December 20, 2023, 3:11pm UTC](https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116 "2023-12-20T15:11:24Z")

</div>

Hello people! Perhaps this question should be in mathstackexchange, and sorry for the lousy formulation! but I feel this subject hits right in the heart of what I consider the Julia community. I’ve recently stumbled upon…

---

## [MTK & \`@mtkmodel\` & \`@mtkbuild\`](https://discourse.julialang.org/t/mtk-mtkmodel-mtkbuild/104793)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 16\
**Last updated:** [December 20, 2023, 5:01pm UTC](https://discourse.julialang.org/t/mtk-mtkmodel-mtkbuild/104793 "2023-12-20T17:01:56Z")

</div>

Great to see the latest update of the ModelingToolkit.jl documentation! The “new way” of doing things with @mtkmodel makes sense to me! There are a few things that I don’t understand in the transition from the “old” way…

---

## [Read text file containing proper CSV data chunks](https://discourse.julialang.org/t/read-text-file-containing-proper-csv-data-chunks/107828)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 11\
**Last updated:** [December 20, 2023, 3:00pm UTC](https://discourse.julialang.org/t/read-text-file-containing-proper-csv-data-chunks/107828 "2023-12-20T15:00:55Z")

</div>

I have a text file that contains comma-separated entries, and I am interested only in the rows that begin with the character A: file = """ C comment-1 B,9,5.5,20:30:33 A,2,1.5,20:31:15 C comment-2 A,0,0.5,22:57:00 C com…

---

## [Calculate positions of astronomical objects from a terrestrial observatory](https://discourse.julialang.org/t/calculate-positions-of-astronomical-objects-from-a-terrestrial-observatory/107772)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 8\
**Last updated:** [December 20, 2023, 9:12am UTC](https://discourse.julialang.org/t/calculate-positions-of-astronomical-objects-from-a-terrestrial-observatory/107772 "2023-12-20T09:12:34Z")

</div>

I am currently converting some AstroPy-based Python libraries to Julia and one of them (which is the most important one) is used to calculate the positions of astronomical objects for a given (detector) location and obse…

---

## [Cannot query user\_version from SQLite Database](https://discourse.julialang.org/t/cannot-query-user-version-from-sqlite-database/107829)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 8:37pm UTC](https://discourse.julialang.org/t/cannot-query-user-version-from-sqlite-database/107829 "2023-12-19T20:37:34Z")

</div>

Hello, does anybody know how should I execute this query? using SQLite db = SQLite.DB() SQLite.execute(db, "PRAGMA user\_version = 3;") @show version = SQLite.execute(db, "PRAGMA user\_version;") # returns 100

---

## [Admin panel front end with julia](https://discourse.julialang.org/t/admin-panel-front-end-with-julia/106720)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 4\
**Last updated:** [December 19, 2023, 7:18pm UTC](https://discourse.julialang.org/t/admin-panel-front-end-with-julia/106720 "2023-12-19T19:18:48Z")

</div>

Hello, I would like to connect a front-end admin panel/dashboard to a Julia library from localhost web browser. The front end needs a left panel and on a right and some dashboards, tables, texts and reactive button. For…

---

## [Makie add manual legend](https://discourse.julialang.org/t/makie-add-manual-legend/107821)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 4:27pm UTC](https://discourse.julialang.org/t/makie-add-manual-legend/107821 "2023-12-19T16:27:13Z")

</div>

I have a plot such as barplot(1:3, 2:4, color = \[:red, :blue, :red\]) and would like to add a legend such that the red =\> "A" and blue =\> "B", how could I accomplish that?

---

## [Introducing NNUE to the Julia community](https://discourse.julialang.org/t/introducing-nnue-to-the-julia-community/107722)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 11:53am UTC](https://discourse.julialang.org/t/introducing-nnue-to-the-julia-community/107722 "2023-12-19T11:53:33Z")

</div>

Background: Local search has been a backbone of many optimization problems. When it comes to heuristic guide, however, machine learning is difficult to integrate into the field due to the time it takes to evaluate the n…

---

## [Computer algebra systems materials](https://discourse.julialang.org/t/computer-algebra-systems-materials/58064)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 12\
**Last updated:** [December 19, 2023, 10:17am UTC](https://discourse.julialang.org/t/computer-algebra-systems-materials/58064 "2023-12-19T10:17:14Z")

</div>

Announcement of Symbolics.jl bring attention of many people and starts many lively discussion on Discourse and beyond, about Computer Algebra Systems (CAS). In this discusion casual many papers, blog post, talks on YouTu…

---

## [2D arrays with ModelingToolkit](https://discourse.julialang.org/t/2d-arrays-with-modelingtoolkit/107448)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 22\
**Last updated:** [December 19, 2023, 8:25am UTC](https://discourse.julialang.org/t/2d-arrays-with-modelingtoolkit/107448 "2023-12-19T08:25:28Z")

</div>

I have the following code, representing a mass attached to a spring-damper element: using ModelingToolkit, OrdinaryDiffEq, LinearAlgebra G\_EARTH = Float64\[0.0, 0.0, -9.81\] # gravitational acceleration \[m/s…

---

## ["Abstractdiffy" not defined for Nonconvex.jl](https://discourse.julialang.org/t/abstractdiffy-not-defined-for-nonconvex-jl/107789)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 2:32am UTC](https://discourse.julialang.org/t/abstractdiffy-not-defined-for-nonconvex-jl/107789 "2023-12-19T02:32:01Z")

</div>

Hello, here is a simplified version of my code, which uses Nonconvex.jl (, ReverseDiff.jl, AbstractDifferentiation.jl, and CUDA.jl: using DelimitedFiles, NPZ, SharedArrays, BenchmarkTools, Statistics, DataFrames using …

---

## [Compatibility issue between ControlSystems and SeeToDee?](https://discourse.julialang.org/t/compatibility-issue-between-controlsystems-and-seetodee/107592)

<div class="topic-metadata">

**Author:** [@Fabrice\_Boquet](https://discourse.julialang.org/u/Fabrice_Boquet)\
**Replies:** 13\
**Last updated:** [December 18, 2023, 8:16pm UTC](https://discourse.julialang.org/t/compatibility-issue-between-controlsystems-and-seetodee/107592 "2023-12-18T20:16:10Z")

</div>

I tried to run a program which uses ControlSystems and SeeToDee at the same time but I never managed to make it work. I am using Julia in Visual Studio Code. I tried many many different things and none of them work. Here…

---

## [ArgumentError: u names not unique. Repeated names:](https://discourse.julialang.org/t/argumenterror-u-names-not-unique-repeated-names/107386)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 14\
**Last updated:** [December 18, 2023, 8:08pm UTC](https://discourse.julialang.org/t/argumenterror-u-names-not-unique-repeated-names/107386 "2023-12-18T20:08:36Z")

</div>

Hi, I’m getting this error when using connect. The error is pretty self-explanatory and the solution is workable. However, every time I’m getting that error, I actually have two inputs that have the same name because t…

---

## [Saved .png/.pdf shows title on top of plot](https://discourse.julialang.org/t/saved-png-pdf-shows-title-on-top-of-plot/107650)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 5\
**Last updated:** [December 18, 2023, 2:45pm UTC](https://discourse.julialang.org/t/saved-png-pdf-shows-title-on-top-of-plot/107650 "2023-12-18T14:45:23Z")

</div>

With Plots v1.39.0 on a MacOS arm 14.2, when saving plots (histograms) as .png or .pdf I get a different figure where the title is put on top of the plot. I am using the following code to plot: lay = @layout \[°;°;°…

---

## [How to find solution from certain index in DifferentialEquations.jl](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 1:37pm UTC](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766 "2023-12-18T13:37:07Z")

</div>

Hi there, I have a DiffrentialEquations.jl solution from a model I created using ModelingToolkit.jl where u has a number of different columns. Is there a way of displaying the results of just the columns of a specified…

---

## [Registering a time dependent function inside a function in ModelingToolkit.jl](https://discourse.julialang.org/t/registering-a-time-dependent-function-inside-a-function-in-modelingtoolkit-jl/100402)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 5\
**Last updated:** [December 18, 2023, 1:21pm UTC](https://discourse.julialang.org/t/registering-a-time-dependent-function-inside-a-function-in-modelingtoolkit-jl/100402 "2023-12-18T13:21:07Z")

</div>

Let’s say that I build my model using functions that, if need be create variables and parameters, and return equations. In the end of the code i put all equations together. Let’s say I have an example block such as usin…

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

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