# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=253

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

**Page:** 254

---

## [Setting miter limit in Makie](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952)

<div class="topic-metadata">

**Author:** [@Michael\_Young](https://discourse.julialang.org/u/Michael_Young)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 5:16pm UTC](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952 "2022-09-08T17:16:44Z")

</div>

Hello, I was wondering if there was a way to set the miter limit in Makie? I couldn’t find this in the documentation. The default for CairoMakie appears to be 10 which leads to a lot of artifacts when i have lines with a…

---

## [Frédéric Goualard found an inexactness in our rand()](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 19\
**Last updated:** [September 8, 2022, 11:59am UTC](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274 "2022-09-08T11:59:09Z")

</div>

The paper, with analysis and a recommended approach (Julia is not alone) Drawing random floating-point numbers from an interval

---

## [GLMakie \`recordframe!\` not working with \`MeshViz\`](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 6\
**Last updated:** [September 8, 2022, 11:15am UTC](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921 "2022-09-08T11:15:46Z")

</div>

I implemented a cloth-simulation algorithm in Julia and visualized the results using MeshViz and GLMakie. The GUI worked fluently and here are some screenshots: The problem is that I was unable to record a movie. …

---

## [Voicebot / NLP packages](https://discourse.julialang.org/t/voicebot-nlp-packages/86841)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 8:11am UTC](https://discourse.julialang.org/t/voicebot-nlp-packages/86841 "2022-09-08T08:11:18Z")

</div>

For a specific project where is needed a system to ask a series of questions and evaluate if the human tell the needed informations, was looking around to understand if in the Julia ecosystem there is anything relevant. …

---

## [Return from Websockets.open do block](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879)

<div class="topic-metadata">

**Author:** [@Tharsalys](https://discourse.julialang.org/u/Tharsalys)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 5:35am UTC](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879 "2022-09-08T05:35:12Z")

</div>

I have a scenario in which I’m intentionally sending a wrong message to a websocket and it returns me the right input; I need to parse and store the right input and use it across the application. But I can’t return it. H…

---

## [On the format of the Palmer Penguins dataset](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 11:15pm UTC](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915 "2022-09-07T23:15:02Z")

</div>

Hello all! Sorry for this basic question. I have been trying to understand whether PalmerPenguins dataset comes as a long or wide format. I would appreciate if you could check the following: As each row corresponds uni…

---

## [Storing an MTK model in JLD2 fails on load](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:21pm UTC](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916 "2022-09-07T22:21:48Z")

</div>

I have an MTK model solution that I want to store temporarily. For that I can easily use Serialization.jl and it works nicely. However, when I want to store the solution object using JLD2 it saves the object, but on loa…

---

## [LsqFit: strange DomainError](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 9:49pm UTC](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907 "2022-09-07T21:49:13Z")

</div>

I am using LsqFit to fit the data for some correlation function. I am not going to go into details, but it is convenient for me to actually fit the logarithm of the correlation function. using LsqFit g(x, N, ξ, α, β) = …

---

## [Corner plots with AoG](https://discourse.julialang.org/t/corner-plots-with-aog/86849)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 9:11pm UTC](https://discourse.julialang.org/t/corner-plots-with-aog/86849 "2022-09-07T21:11:38Z")

</div>

Hello, I am looking for any example/template of how to make a corner plot with AoG preferentially (otherwise with plain Makie). Thank you very much.

---

## [How to create a patch/shape with a color gradient in a simple 2d plot?](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607)

<div class="topic-metadata">

**Author:** [@philihp](https://discourse.julialang.org/u/philihp)\
**Replies:** 12\
**Last updated:** [September 7, 2022, 6:52pm UTC](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607 "2022-09-07T18:52:23Z")

</div>

Hi, I am trying to add a rectangle with a color gradient to a plot to indicate a special region that should fade out, i.e. have a color gradient to white. So far I have tried hpatch() and vpatch(), which give me the rect…

---

## [Alpine+JuMP gives error for quadratic functions](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 5:54pm UTC](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321 "2022-09-07T17:54:54Z")

</div>

I am using Alpine with JuMP and Alpine fails for quadratic functions. Using the example from nlp3 here: https://github.com/lanl-ansi/Alpine.jl/blob/master/examples/MINLPs/nlp.jl, I have a working example: #Working examp…

---

## [Parquet2 RFC: removing \`CacheVector\`](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 5:13pm UTC](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903 "2022-09-07T17:13:41Z")

</div>

When I wrote Parquet2.jl, I had what at the time I thought was a terribly clever idea about only loading specific subsets of the full buffer. My motivation for this was based on the observation that, while parquet is al…

---

## [\[PowerModelsDistribution\] Error in indexing during Kron reduction with 1ph loads](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900)

<div class="topic-metadata">

**Author:** [@apigott](https://discourse.julialang.org/u/apigott)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 4:10pm UTC](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900 "2022-09-07T16:10:24Z")

</div>

Back again with another question! I’m trying to implement the IEEE-13 bus in PMD and I’m getting an issue with indexing when using the test case defined in the OpenDSS program files. On import, before adding the vbounds…

---

## [Distributed.jl, DistributedArray.jl with InfiniBand cluster](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 19\
**Last updated:** [September 7, 2022, 3:51pm UTC](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049 "2022-09-07T15:51:54Z")

</div>

I’m developing an algorithm using Distributed.jl and DistributedArrays.jl, and I’m supposed to run this algorithm on a cluster supercomputer. I’ve recently been told that it uses Infiniband to connect internal nodes with…

---

## [Memory challenges for Flux on Resnet](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 8\
**Last updated:** [September 7, 2022, 3:22pm UTC](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385 "2022-09-07T15:22:55Z")

</div>

I’m attempting to reproduce Resnet (from Metalhead.jl) on ImageNet performance through simple demos for a single GPU setup (I’m on a RTX A4000, 16Bg, ~6000 CUDA cores) and stumbled upon 2 memory related challenges. A fi…

---

## [Need some help in understanding zygote gradient](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 3:18pm UTC](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781 "2022-09-07T15:18:27Z")

</div>

Hi, I met some troubles in understanding zygote gradient. for example: I plan to get the gradient for f(x) = x^2 at x = 5, and also sum the result of f(x) for each time let result = 0 f(x) = begin a = x^2 …

---

## [Nonorthogonal axes in Makie (or maybe in other plotting package)](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 14\
**Last updated:** [September 7, 2022, 3:05pm UTC](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749 "2022-09-07T15:05:45Z")

</div>

Is it possible to make a plot (both in 2d and 3d) using non-orthogonal axes? Something similar to this (link) or this (link) (though here simple image transformation is not enough for me; I want the axes transform…

---

## [Speedup optimization in nested for loop](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880)

<div class="topic-metadata">

**Author:** [@tsojtc](https://discourse.julialang.org/u/tsojtc)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 12:05pm UTC](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880 "2022-09-07T12:05:43Z")

</div>

I have adapted some python code that takes data which is G x N, and returns the (strictly upper triangular) matrix cost\_permuted whose (i,j)-th entry represents the minimum of cooscillation\_distance(data\[i, :\], data\[j, :…

---

## [Should 1^x == 1?](https://discourse.julialang.org/t/should-1-x-1/77529)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [September 7, 2022, 9:51am UTC](https://discourse.julialang.org/t/should-1-x-1/77529 "2022-09-07T09:51:54Z")

</div>

Dearests, using Symbolics @variables p, α, N D = Differential(α) D((p^α + 1 - p)^N) / log(p) |\> expand\_derivatives |\> x -\> substitute(x, α =\> 1) |\> simplify correctly returns N\*p\*(1^(N - 1)). I was wondering if a subs…

---

## [Solving 2D poisson equation in polar coordinates (finite differences)](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280)

<div class="topic-metadata">

**Author:** [@Aran](https://discourse.julialang.org/u/Aran)\
**Replies:** 19\
**Last updated:** [June 7, 2022, 1:47am UTC](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280 "2022-06-07T01:47:03Z")

</div>

Hello all, I am looking to solve the following poisson equation \\nabla^2 \\psi = -\\omega \\quad \\text{and} \\quad \\nabla^2 = \\frac{\\partial ^2}{{\\partial \\rho^2 }} + \\frac{1}{\\rho }\\frac{\\partial}{\\partial \\rho} + \\frac{…

---

## [JuMP element wise \`latex\_formulation\`](https://discourse.julialang.org/t/jump-element-wise-latex-formulation/86842)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 3\
**Last updated:** [September 6, 2022, 7:22pm UTC](https://discourse.julialang.org/t/jump-element-wise-latex-formulation/86842 "2022-09-06T19:22:18Z")

</div>

I have some large JuMP models which I’d like to convert to latex, however, this quickly becomes impractical. Given a model using JuMP model = Model() @variable(model, x\[1:10\]) @constraint(model, x\_min, x .≤ 10) @cons…

---

## [How to save static svg with plotly](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [September 6, 2022, 9:27am UTC](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225 "2022-09-06T09:27:07Z")

</div>

julia\> using Plots julia\> plotly() Plots.PlotlyBackend() julia\> savefig(plot(1:5,1:5), "/tmp/x.svg") produces a HTML snippet. Is there a way to get a static SVG? Note: I know how to do this for PlotlyJS, but that doe…

---

## [How to have condition on SimpleWeightedDiGraph function?](https://discourse.julialang.org/t/how-to-have-condition-on-simpleweighteddigraph-function/86735)

<div class="topic-metadata">

**Author:** [@A\_Green\_Leave](https://discourse.julialang.org/u/A_Green_Leave)\
**Replies:** 7\
**Last updated:** [September 5, 2022, 7:43pm UTC](https://discourse.julialang.org/t/how-to-have-condition-on-simpleweighteddigraph-function/86735 "2022-09-05T19:43:10Z")

</div>

Hi Guys According to the documentation the way SimpleWeightedDiGraph works is something like a g = SimpleWeightedDiGraph(heads, tails, weights). If so and if having a three list of requirements: heads = \[ 62, 17, 15, 2…

---

## [Customising the legend display order in Plots.jl](https://discourse.julialang.org/t/customising-the-legend-display-order-in-plots-jl/86779)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 1\
**Last updated:** [September 5, 2022, 1:59pm UTC](https://discourse.julialang.org/t/customising-the-legend-display-order-in-plots-jl/86779 "2022-09-05T13:59:56Z")

</div>

I am using Plots.jl with the pgfplotsx() backend and I want to have a somewhat custom legend, which has two columns and shows the marker for the expected curve next to actual samples on that curve. A MWE is given below: …

---

## [Fast non dominated sorting](https://discourse.julialang.org/t/fast-non-dominated-sorting/24164)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 21\
**Last updated:** [September 5, 2022, 8:38am UTC](https://discourse.julialang.org/t/fast-non-dominated-sorting/24164 "2022-09-05T08:38:42Z")

</div>

I need a fast implementation of the so-called non dominated sorting algorithm. The best I could come up with so far is the following (the sorting is to be done on the basis of three criteria): dominates(x, y) = all(x .\<=…

---

## [Indexing variables by vectors not working in JuMPv1.2.x](https://discourse.julialang.org/t/indexing-variables-by-vectors-not-working-in-jumpv1-2-x/86652)

<div class="topic-metadata">

**Author:** [@BatyLeo](https://discourse.julialang.org/u/BatyLeo)\
**Replies:** 4\
**Last updated:** [September 4, 2022, 11:47pm UTC](https://discourse.julialang.org/t/indexing-variables-by-vectors-not-working-in-jumpv1-2-x/86652 "2022-09-04T23:47:34Z")

</div>

Hello, a bug appeared in my package when I updated JuMP to v1.2.1 from v1.1.1. Here is a minimum (non) working example: using GLPK using JuMP paths = \[ \[1, 2, 15, 3, 20\], \[1, 9, 16, 20\], \[1, 2, 20\] \] mode…

---

## [Is the any package or for solving a MIP with branch and bound that gives the user the developed constraints during the solution procedure?](https://discourse.julialang.org/t/is-the-any-package-or-for-solving-a-mip-with-branch-and-bound-that-gives-the-user-the-developed-constraints-during-the-solution-procedure/86714)

<div class="topic-metadata">

**Author:** [@Alex\_ricci](https://discourse.julialang.org/u/Alex_ricci)\
**Replies:** 2\
**Last updated:** [September 4, 2022, 9:50pm UTC](https://discourse.julialang.org/t/is-the-any-package-or-for-solving-a-mip-with-branch-and-bound-that-gives-the-user-the-developed-constraints-during-the-solution-procedure/86714 "2022-09-04T21:50:18Z")

</div>

I have a two-stage stochastic optimization model with binary and continuous variables in the first and the second stages. To solve this I employ a benders decomposition technique. In this technique I need to get the dua…

---

## [Inset axis with non-transparent background](https://discourse.julialang.org/t/inset-axis-with-non-transparent-background/86763)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 4\
**Last updated:** [September 4, 2022, 9:20pm UTC](https://discourse.julialang.org/t/inset-axis-with-non-transparent-background/86763 "2022-09-04T21:20:06Z")

</div>

My question is essentially the same as this and this: I want to add an inset axis to an existing (main) axis, but the inset axis looks transparent and I can see the grid lines of the main axis through the inset. The ans…

---

## [Zero gradient when using argmax](https://discourse.julialang.org/t/zero-gradient-when-using-argmax/86745)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 2:50pm UTC](https://discourse.julialang.org/t/zero-gradient-when-using-argmax/86745 "2022-09-04T14:50:35Z")

</div>

The following example shows a zero gradient (update! appears to do nothing), but if I change the argmax calls to sum calls, then the gradient is non-zero. Is argmax not supported, or is there some other thing wrong with …

---

## [Curve Fitting With Error In Variables](https://discourse.julialang.org/t/curve-fitting-with-error-in-variables/82614)

<div class="topic-metadata">

**Author:** [@vini-fda](https://discourse.julialang.org/u/vini-fda)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 4:27am UTC](https://discourse.julialang.org/t/curve-fitting-with-error-in-variables/82614 "2022-09-04T04:27:19Z")

</div>

I’m looking for a way to do curve fitting where the data has error both on x and y. I’ve read up on physics forums about errors-in-variables fitting, but I’d like to know if there are already any functionalities that ju…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=252)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=254)
