# Specific Domains

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

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

**Page:** 244

---

## [Implement a REST server in Julia?](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 19\
**Last updated:** [October 17, 2022, 2:20am UTC](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117 "2022-10-17T02:20:48Z")

</div>

I would like to build a REST API for a Julia code. I am currently evaluating whether I use also Julia to implement the REST server or if I use another language (e.g. Python) for the server part. These are the package th…

---

## [Makie - Optimal way of drawing milions of data points](https://discourse.julialang.org/t/makie-optimal-way-of-drawing-milions-of-data-points/78748)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 13\
**Last updated:** [October 17, 2022, 1:42am UTC](https://discourse.julialang.org/t/makie-optimal-way-of-drawing-milions-of-data-points/78748 "2022-10-17T01:42:13Z")

</div>

Hi, first of all, big thanks to authors and contributors of Makie! This is the package that dragged me into Julia and it works so well for my use cases, that it feels illegal. :slight\_smile: I am working with long tim…

---

## [Tutorials for Modeling Toolkit look a little messed up](https://discourse.julialang.org/t/tutorials-for-modeling-toolkit-look-a-little-messed-up/88199)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [October 16, 2022, 6:33pm UTC](https://discourse.julialang.org/t/tutorials-for-modeling-toolkit-look-a-little-messed-up/88199 "2022-10-16T18:33:28Z")

</div>

https://tutorials.sciml.ai/stable/ode\_extras/01-ModelingToolkit/ This is probably not the place to report this, but I wanted to mark it down before I forget. Looks like some errors and screen dumps are happening in the…

---

## [Plots saved to file loose colour](https://discourse.julialang.org/t/plots-saved-to-file-loose-colour/88612)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 6\
**Last updated:** [October 16, 2022, 5:51pm UTC](https://discourse.julialang.org/t/plots-saved-to-file-loose-colour/88612 "2022-10-16T17:51:19Z")

</div>

I’m saving Gadfly plots as PNG but the colour is stripped from them, making them useless. The code looks like: using DataFrames, Gadfly, Cairo layers = Plot\[\] for protein in proteins l = plot(f4p, x=protein, color=:do…

---

## [Flux Get Forward Pass Results when Taking Gradient](https://discourse.julialang.org/t/flux-get-forward-pass-results-when-taking-gradient/88805)

<div class="topic-metadata">

**Author:** [@tawheeler](https://discourse.julialang.org/u/tawheeler)\
**Replies:** 3\
**Last updated:** [October 16, 2022, 4:41pm UTC](https://discourse.julialang.org/t/flux-get-forward-pass-results-when-taking-gradient/88805 "2022-10-16T16:41:14Z")

</div>

I was hoping to keep track of loss values while running training with Flux.jl. However, so far I have been unable to both evaluate my loss gradient and evaluate my loss at the same time. I have to run them separately: ℓ…

---

## [Not sure how to get this LsqFit working](https://discourse.julialang.org/t/not-sure-how-to-get-this-lsqfit-working/88769)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 10\
**Last updated:** [October 16, 2022, 12:57am UTC](https://discourse.julialang.org/t/not-sure-how-to-get-this-lsqfit-working/88769 "2022-10-16T00:57:36Z")

</div>

I have some data that I need to fit. All the other functions work, I’m just trying to minimize the cost function model in my code. Assuming you have all the same packages as me (the only errant one may be Underscores.jl)…

---

## [Gridap.jl field-circuit coupling for magnetostatics](https://discourse.julialang.org/t/gridap-jl-field-circuit-coupling-for-magnetostatics/83069)

<div class="topic-metadata">

**Author:** [@gwlagerweij](https://discourse.julialang.org/u/gwlagerweij)\
**Replies:** 7\
**Last updated:** [October 15, 2022, 3:07pm UTC](https://discourse.julialang.org/t/gridap-jl-field-circuit-coupling-for-magnetostatics/83069 "2022-10-15T15:07:17Z")

</div>

Hi all, I am trying to solve a field-circuit coupled problem using the Gridap.jl package. I want to simulate the current distribution inside a high-voltage cable, as well as the associated magnetic field. This means I…

---

## [Surface/mesh/wireframe with only the coordinates](https://discourse.julialang.org/t/surface-mesh-wireframe-with-only-the-coordinates/88501)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 19\
**Last updated:** [October 15, 2022, 9:40am UTC](https://discourse.julialang.org/t/surface-mesh-wireframe-with-only-the-coordinates/88501 "2022-10-15T09:40:36Z")

</div>

I have a ton of x,y,z coordinates, and I need to represent them graphically. This could be as either a mesh, contour plot, wireframe, or surface. Julia doesn’t really argue with me; everything compiles. But I get a blan…

---

## [Does ModelingToolKit suitable for this kind of battery modeling (Example in simulink)?](https://discourse.julialang.org/t/does-modelingtoolkit-suitable-for-this-kind-of-battery-modeling-example-in-simulink/88759)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 8:15am UTC](https://discourse.julialang.org/t/does-modelingtoolkit-suitable-for-this-kind-of-battery-modeling-example-in-simulink/88759 "2022-10-15T08:15:29Z")

</div>

Hi all, I want to implement a battery simulation model, an example is given on Matlab Simulink: I am new to ModelingToolkit and trying to the possibilities of implementing this in Julia. Thank you very much for the p…

---

## [State of PlotlyJS and support packages](https://discourse.julialang.org/t/state-of-plotlyjs-and-support-packages/86119)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 10\
**Last updated:** [October 15, 2022, 3:51am UTC](https://discourse.julialang.org/t/state-of-plotlyjs-and-support-packages/86119 "2022-10-15T03:51:12Z")

</div>

PlotlyJS seems to be unmaintained by its current (and only) maintainer @sglyon. It also relies on Blink.jl, a wrapper for Electron, where the last commit was more than one year ago and uses a version of Electron more tha…

---

## [How to obtain log likelihoods from turing model](https://discourse.julialang.org/t/how-to-obtain-log-likelihoods-from-turing-model/88700)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 4\
**Last updated:** [October 14, 2022, 7:00pm UTC](https://discourse.julialang.org/t/how-to-obtain-log-likelihoods-from-turing-model/88700 "2022-10-14T19:00:07Z")

</div>

What are some good ways of obtaining the likelihood of observing some data given the parameters ( P(y|\\theta), where I feed in y and \\theta )? I couldn’t quite find it in the documentation. edit: would be especially hel…

---

## [Creating a Weighted Graph](https://discourse.julialang.org/t/creating-a-weighted-graph/41241)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 33\
**Last updated:** [June 16, 2020, 9:50pm UTC](https://discourse.julialang.org/t/creating-a-weighted-graph/41241 "2020-06-16T21:50:46Z")

</div>

I would like to try using a weighted graph. To this end, I added SimpleWeightedGraphs to Atom, created an erdos\_renyi directed graph, and then applied SimpleWeightedGraphs to this graph. const G = erdos\_renyi(10000, 0.0…

---

## [Problem with running Julia 1.6.7 with CUDA 11.7](https://discourse.julialang.org/t/problem-with-running-julia-1-6-7-with-cuda-11-7/87596)

<div class="topic-metadata">

**Author:** [@hpaldan](https://discourse.julialang.org/u/hpaldan)\
**Replies:** 8\
**Last updated:** [October 14, 2022, 3:19pm UTC](https://discourse.julialang.org/t/problem-with-running-julia-1-6-7-with-cuda-11-7/87596 "2022-10-14T15:19:31Z")

</div>

I have a problem with running CUDA on Julia and can’t figure out what is going wrong. Allocating seems to work fine but any kind of operation creates large bug reports. using CUDA CUDA.functional() # returns true N = 2^…

---

## [Optimization.jl constraints violated...why?](https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269)

<div class="topic-metadata">

**Author:** [@kjohnsen](https://discourse.julialang.org/u/kjohnsen)\
**Replies:** 8\
**Last updated:** [October 14, 2022, 10:38am UTC](https://discourse.julialang.org/t/optimization-jl-constraints-violated-why/88269 "2022-10-14T10:38:34Z")

</div>

I am trying to implement model predictive control using Optimization.jl, with the Optim backend. It seems like it should be straightforward: a quadratic program, with some linear constraints. But the constraints just are…

---

## [Sum of JuMP.value](https://discourse.julialang.org/t/sum-of-jump-value/88673)

<div class="topic-metadata">

**Author:** [@Emma456](https://discourse.julialang.org/u/Emma456)\
**Replies:** 5\
**Last updated:** [October 14, 2022, 2:14am UTC](https://discourse.julialang.org/t/sum-of-jump-value/88673 "2022-10-14T02:14:36Z")

</div>

Hello, I would like to display in an excel document the sum of students assigned for each course: if JuMP.value.(x\[i,j\])==1 for each j, display the sum of x\[i,j\] Could someone help me?

---

## [Variable is not a function of independent variable error for trivial example](https://discourse.julialang.org/t/variable-is-not-a-function-of-independent-variable-error-for-trivial-example/88669)

<div class="topic-metadata">

**Author:** [@drandran12](https://discourse.julialang.org/u/drandran12)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 11:44pm UTC](https://discourse.julialang.org/t/variable-is-not-a-function-of-independent-variable-error-for-trivial-example/88669 "2022-10-13T23:44:39Z")

</div>

I am trying out the ModelingToolkit.jl package and I get this weird error when defing the classical harmonic oscillator with the following code using ModelingToolkit, @variables t x(t) @parameters ω₀ Dₜ = Differential(t…

---

## [SatelliteToolbox vs AstroLib](https://discourse.julialang.org/t/satellitetoolbox-vs-astrolib/88672)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 11:11pm UTC](https://discourse.julialang.org/t/satellitetoolbox-vs-astrolib/88672 "2022-10-13T23:11:15Z")

</div>

I was surprised to find zero posts about the intersect between these two packages. Any overlap worth comparing, mentioning, etc? I’m mostly interested in the azimuth of the sun and moon at specific elevations (for speci…

---

## [ForwardDiff yields incorrect results if one misues \`DiffCache\`](https://discourse.julialang.org/t/forwarddiff-yields-incorrect-results-if-one-misues-diffcache/88684)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 9:34pm UTC](https://discourse.julialang.org/t/forwarddiff-yields-incorrect-results-if-one-misues-diffcache/88684 "2022-10-13T21:34:09Z")

</div>

I’d like to report a mistake that some new users like me might make when using PreallocationTools. One should not use DiffCache to store non-variables such as parameters. It makes perfect sense in a hindsight, because th…

---

## [How to increase the padding between xticks and xtick labels?](https://discourse.julialang.org/t/how-to-increase-the-padding-between-xticks-and-xtick-labels/88675)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 8:38pm UTC](https://discourse.julialang.org/t/how-to-increase-the-padding-between-xticks-and-xtick-labels/88675 "2022-10-13T20:38:26Z")

</div>

I have a problem, that xticks and xtick labels almost overlap if the ticks face outwards. (It is probably because my xtick labels are like \\frac{\\pi k}{N}). How do I increase the padding between the xticks and xtick l…

---

## [Custom multivariate distribution in Turing.jl](https://discourse.julialang.org/t/custom-multivariate-distribution-in-turing-jl/88414)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 11\
**Last updated:** [October 13, 2022, 1:31pm UTC](https://discourse.julialang.org/t/custom-multivariate-distribution-in-turing-jl/88414 "2022-10-13T13:31:35Z")

</div>

I want to use a custom multivariate distribution that actually generates arrays, and I want to know if there’s anything I need to modify in order to be adapted to be used in Turing using Distributions struct OrthoNNDist…

---

## [Grouped bar plots, with different number of bars in each group](https://discourse.julialang.org/t/grouped-bar-plots-with-different-number-of-bars-in-each-group/88517)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 8\
**Last updated:** [October 13, 2022, 12:44pm UTC](https://discourse.julialang.org/t/grouped-bar-plots-with-different-number-of-bars-in-each-group/88517 "2022-10-13T12:44:22Z")

</div>

I have a few data sets: d1 = \[1,3,4,3,2\] d2 = \[2\] d3 = \[3\] d4 = \[5,3\] I want to create a bar plot, with one group for each data set, containing 4/1/1/2 bars respectively. Is this possible? I found groupedbar, but that …

---

## [Can we use LinearExponential with Turing.jl model?](https://discourse.julialang.org/t/can-we-use-linearexponential-with-turing-jl-model/88479)

<div class="topic-metadata">

**Author:** [@aelmokadem](https://discourse.julialang.org/u/aelmokadem)\
**Replies:** 18\
**Last updated:** [October 13, 2022, 11:39am UTC](https://discourse.julialang.org/t/can-we-use-linearexponential-with-turing-jl-model/88479 "2022-10-13T11:39:36Z")

</div>

Trying to use the LinearExponential solver with a Turing.jl model to run a Bayesian inference. Can this example work? Model: dat\_test = \[0.0,4.4,6.9,8.2,7.8,7.5,6.2,5.3,4.9,3.7,1.05\] times = \[0.0,0.27,0.58,1.02,2.02,3.…

---

## [Rlocusplot() does not plot the roots](https://discourse.julialang.org/t/rlocusplot-does-not-plot-the-roots/88547)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 10:46am UTC](https://discourse.julialang.org/t/rlocusplot-does-not-plot-the-roots/88547 "2022-10-13T10:46:34Z")

</div>

Hello guys. I’m having trouble plotting the root locus diagram. He doesn’t show my roots. X(s) = \\frac{6s+204}{s^3+10s^2+34s} using ControlSystems sys2 = tf( \[6,204\], \[1,10,34,0\] ) rlocusplot(sys2) The Julia code ab…

---

## [Solver throwing LinearAlgebra.SingularException(1) error for my ODE System](https://discourse.julialang.org/t/solver-throwing-linearalgebra-singularexception-1-error-for-my-ode-system/88281)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 6\
**Last updated:** [October 13, 2022, 9:19am UTC](https://discourse.julialang.org/t/solver-throwing-linearalgebra-singularexception-1-error-for-my-ode-system/88281 "2022-10-13T09:19:33Z")

</div>

Hi, When I am trying to solve my ODE system I get a LinearAlgebra.SingularException(1) error and I am not sure why or what I can do about it. Here is my system: using DifferentialEquations const Nc = 100 const L = 1. …

---

## [CSV and Parsers PosLen Length Future Support](https://discourse.julialang.org/t/csv-and-parsers-poslen-length-future-support/88646)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 5:33am UTC](https://discourse.julialang.org/t/csv-and-parsers-poslen-length-future-support/88646 "2022-10-13T05:33:39Z")

</div>

PosLen function in Parsers only supports up to 64-bit values per cell right? I’m thinking of storing model parameters as string in a cell and this exceeds the length allowed in Parsers.jl. Is there going to be future sup…

---

## [Asof join support in DataFrames.jl](https://discourse.julialang.org/t/asof-join-support-in-dataframes-jl/88445)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 9\
**Last updated:** [October 13, 2022, 3:06am UTC](https://discourse.julialang.org/t/asof-join-support-in-dataframes-jl/88445 "2022-10-13T03:06:30Z")

</div>

Is merging data frames by range supported now?

---

## [Gurobi MIP start, calling GRBread to provide starting vector using a \*.mst/ \*.sol file](https://discourse.julialang.org/t/gurobi-mip-start-calling-grbread-to-provide-starting-vector-using-a-mst-sol-file/10610)

<div class="topic-metadata">

**Author:** [@Anton\_Hinneck](https://discourse.julialang.org/u/Anton_Hinneck)\
**Replies:** 6\
**Last updated:** [October 13, 2022, 2:36am UTC](https://discourse.julialang.org/t/gurobi-mip-start-calling-grbread-to-provide-starting-vector-using-a-mst-sol-file/10610 "2022-10-13T02:36:06Z")

</div>

Hi, i am currently developing a mixed integer model and need to pass an initial solution from a previous run to Gurobi. I probably could do it using JuMP’s setvalue() function. It would be much more handy however, to ju…

---

## [Issue with UDE repository - LV\_Scenario 1](https://discourse.julialang.org/t/issue-with-ude-repository-lv-scenario-1/88618)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 8\
**Last updated:** [October 12, 2022, 10:33pm UTC](https://discourse.julialang.org/t/issue-with-ude-repository-lv-scenario-1/88618 "2022-10-12T22:33:38Z")

</div>

Hi, When trying to perform the optimisation with Adam adtype = Optimization.AutoZygote() optf = Optimization.OptimizationFunction((x,p)-\>loss(x), adtype) optprob = Optimization.OptimizationProblem(optf, ComponentVector…

---

## [Type issue to get PreallocationTools.DiffCache work with Symbolics.jacobian\_sparsity](https://discourse.julialang.org/t/type-issue-to-get-preallocationtools-diffcache-work-with-symbolics-jacobian-sparsity/88542)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 3\
**Last updated:** [October 12, 2022, 10:12pm UTC](https://discourse.julialang.org/t/type-issue-to-get-preallocationtools-diffcache-work-with-symbolics-jacobian-sparsity/88542 "2022-10-12T22:12:50Z")

</div>

Hello, I would like to use Symbolics.jacobian\_sparsity to detect the sparsity pattern for a code that supports ForwardDiff.jacobian using PreallocationTools. The code below is a MWE for a program where the full residua…

---

## [Parameter Fitting in Turing](https://discourse.julialang.org/t/parameter-fitting-in-turing/88412)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 15\
**Last updated:** [October 12, 2022, 4:56pm UTC](https://discourse.julialang.org/t/parameter-fitting-in-turing/88412 "2022-10-12T16:56:18Z")

</div>

I am trying to run an MCMC to find the posterior of parameters of my model using Turing. The setup I have currently is the model itself, and a randomly sampled dataset I run through the model to yield values from the mod…

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

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