# Specific Domains

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

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

**Page:** 123

---

## [LaTeX friendly vector graphics with Makie](https://discourse.julialang.org/t/latex-friendly-vector-graphics-with-makie/84704)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 2:26am UTC](https://discourse.julialang.org/t/latex-friendly-vector-graphics-with-makie/84704 "2024-04-01T02:26:43Z")

</div>

Is there a way to produce vector graphics figures with Makie such that they can be included in a LaTeX document and have LaTeX typeset all text in the figure? My first idea was to use CairoMakie to produce a figure.svg f…

---

## [Error while running a PDE model using ModelingToolkit and MethodOfLines!](https://discourse.julialang.org/t/error-while-running-a-pde-model-using-modelingtoolkit-and-methodoflines/112160)

<div class="topic-metadata">

**Author:** [@aelmokadem](https://discourse.julialang.org/u/aelmokadem)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 2:00am UTC](https://discourse.julialang.org/t/error-while-running-a-pde-model-using-modelingtoolkit-and-methodoflines/112160 "2024-04-01T02:00:17Z")

</div>

Hi, I am trying to solve this PDE system and getting the error below. Any ideas what I am missing here?! Thank you. Modeling code: using DifferentialEquations, ModelingToolkit, MethodOfLines, DomainSets @parameters …

---

## [How to not plot axis ticks on top and right in Plots.jl with GR backend?](https://discourse.julialang.org/t/how-to-not-plot-axis-ticks-on-top-and-right-in-plots-jl-with-gr-backend/112345)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [March 31, 2024, 6:35pm UTC](https://discourse.julialang.org/t/how-to-not-plot-axis-ticks-on-top-and-right-in-plots-jl-with-gr-backend/112345 "2024-03-31T18:35:06Z")

</div>

This is the inverse question for: Axis ticks on top and right plot with framestyle=:box used to not put axis ticks on top and right, but after Feature request: plot axes and ticks on all four sides · Issue #2218 · Julia…

---

## [Pseudo-random freeze during Flux training](https://discourse.julialang.org/t/pseudo-random-freeze-during-flux-training/112357)

<div class="topic-metadata">

**Author:** [@CM1](https://discourse.julialang.org/u/CM1)\
**Replies:** 0\
**Last updated:** [March 31, 2024, 4:54pm UTC](https://discourse.julialang.org/t/pseudo-random-freeze-during-flux-training/112357 "2024-03-31T16:54:34Z")

</div>

I am training the parameters of an epidemiology model via Flux. I am able to obtain gradients for the parameters and for a few epochs, the training works well. However, after some more epochs, the training freezes. Weird…

---

## [Can RuntimeGeneratedFunctions.jl cause memory leak issue?](https://discourse.julialang.org/t/can-runtimegeneratedfunctions-jl-cause-memory-leak-issue/112261)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 1\
**Last updated:** [March 31, 2024, 4:33pm UTC](https://discourse.julialang.org/t/can-runtimegeneratedfunctions-jl-cause-memory-leak-issue/112261 "2024-03-31T16:33:34Z")

</div>

Hi, I am writing a Genetic Programming-styled code to search for solutions to specific problems. The solutions are in the form of functions. Thus, I use RuntimeGeneratedFunctions.jl to generate functions in runtime in o…

---

## [Error loading FileIOExt](https://discourse.julialang.org/t/error-loading-fileioext/112353)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [March 31, 2024, 2:21pm UTC](https://discourse.julialang.org/t/error-loading-fileioext/112353 "2024-03-31T14:21:39Z")

</div>

When I type: using Plots I get the following error message: ┌ Warning: Module FileIOExt with build ID ffffffff-ffff-ffff-0000-0a3d1eb7c6d1 is missing from the cache. │ This may mean FileIOExt \[f5f51d8f-5827-5d2e-939b-…

---

## [Smooth approximation to max(0, x)](https://discourse.julialang.org/t/smooth-approximation-to-max-0-x/109383)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 13\
**Last updated:** [March 31, 2024, 1:43am UTC](https://discourse.julialang.org/t/smooth-approximation-to-max-0-x/109383 "2024-03-31T01:43:42Z")

</div>

I need a “smooth” approximation f to x \\to \\max(0, x), such that \\lim\_{x \\to -\\infty} f(x) = 0, \\lim\_{x \\to \\infty} f(x) = x, f(x) \> 0, f'(x) \> 0, both continuous; ideally continuous higher derivatives not too expensiv…

---

## [(Plots.jl) aspect\_ratio=1.0 for 3d plot](https://discourse.julialang.org/t/plots-jl-aspect-ratio-1-0-for-3d-plot/58607)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 16\
**Last updated:** [March 30, 2024, 7:43pm UTC](https://discourse.julialang.org/t/plots-jl-aspect-ratio-1-0-for-3d-plot/58607 "2024-03-30T19:43:25Z")

</div>

Issue I don’t know how to set aspect\_ratio=:equal for 3d plot (like axis\_equal in MATLAB). It seems that only x and y axes’ aspect ratio are equal. Example code using Plots function test() N = 10 xs = range(0…

---

## [Constrained Optimization of a "taxation" curve not working Optimization.jl / Ipopt](https://discourse.julialang.org/t/constrained-optimization-of-a-taxation-curve-not-working-optimization-jl-ipopt/112317)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 11\
**Last updated:** [March 30, 2024, 6:08pm UTC](https://discourse.julialang.org/t/constrained-optimization-of-a-taxation-curve-not-working-optimization-jl-ipopt/112317 "2024-03-30T18:08:34Z")

</div>

I was having some discussions online on Mastodon, and advocating that we could simplify our tax code to a flat tax + UBI and that this is kind of “near optimal” in some sense. I wrote up a notebook about it… GitHub - dl…

---

## [Python pcolormesh() alternative in Julia](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia/111885)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 15\
**Last updated:** [March 30, 2024, 5:03am UTC](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia/111885 "2024-03-30T05:03:02Z")

</div>

I want to get equivalent plot in Julia that i have using Python pcolormesh() function. Here x and z are two 270x100 matrices. You can download folder containing that Python script and data at VelocPythJul.tar.gz - Google…

---

## [How to catch a instability in an ODE using Julia?](https://discourse.julialang.org/t/how-to-catch-a-instability-in-an-ode-using-julia/112324)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 2\
**Last updated:** [March 30, 2024, 12:56pm UTC](https://discourse.julialang.org/t/how-to-catch-a-instability-in-an-ode-using-julia/112324 "2024-03-30T12:56:43Z")

</div>

I am modeling the interaction between bacteria and phages with DifferentialEquations and making an interactive plot with GLMakie. The plot works, but is it possible to catch instability in the ODEs so that I can run a l…

---

## [Agent-based small-economy modeling](https://discourse.julialang.org/t/agent-based-small-economy-modeling/112309)

<div class="topic-metadata">

**Author:** [@Chuck\_Harrison](https://discourse.julialang.org/u/Chuck_Harrison)\
**Replies:** 1\
**Last updated:** [March 30, 2024, 9:42am UTC](https://discourse.julialang.org/t/agent-based-small-economy-modeling/112309 "2024-03-30T09:42:45Z")

</div>

I am starting a project to model local economies using complementary currencies. I expect to start with Stef Kuyper’s EconoSim.jl framework(GitHub - HapponomyOrg/EconoSim.jl: Economic simulation tools). I am inexperience…

---

## [Make variable available on all workers](https://discourse.julialang.org/t/make-variable-available-on-all-workers/112302)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 4:31pm UTC](https://discourse.julialang.org/t/make-variable-available-on-all-workers/112302 "2024-03-29T16:31:43Z")

</div>

Hi all, I’d like to run an evolutionary algorithm which starts with a population of agents and then lets that evolve for a number of generations. To make this not too slow, parts of the algorithm are parallelized. If I …

---

## [CairoMakie stop splitting line into segments when using varying colour along line](https://discourse.julialang.org/t/cairomakie-stop-splitting-line-into-segments-when-using-varying-colour-along-line/112234)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [March 29, 2024, 3:58pm UTC](https://discourse.julialang.org/t/cairomakie-stop-splitting-line-into-segments-when-using-varying-colour-along-line/112234 "2024-03-29T15:58:27Z")

</div>

When you have a line with varying colour, CairoMakie splits the line up into segments defined by your data points. Is there a way to avoid this? code to produce fig: using CairoMakie f = Figure() ax = Axis(f\[1, 1\]) x…

---

## [Turing.jl for geophysical applications](https://discourse.julialang.org/t/turing-jl-for-geophysical-applications/107197)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 5\
**Last updated:** [March 29, 2024, 1:29pm UTC](https://discourse.julialang.org/t/turing-jl-for-geophysical-applications/107197 "2024-03-29T13:29:07Z")

</div>

Hello everyone. I am writing this post with the hope that It helps people with background in physics, and want to learn about probabilistic programming using Turing.jl. My background is geophysics, and I only have a cou…

---

## [Fast implementation of incomplete extended gamma function, QuadGK?](https://discourse.julialang.org/t/fast-implementation-of-incomplete-extended-gamma-function-quadgk/112239)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 4\
**Last updated:** [March 29, 2024, 3:10am UTC](https://discourse.julialang.org/t/fast-implementation-of-incomplete-extended-gamma-function-quadgk/112239 "2024-03-29T03:10:42Z")

</div>

Hello, I am interested in developing a fast routine to compute the following extended incomplete gamma function for various pairs (x, q). \\gamma(\\alpha, \\kappa, p, q)(x) = \\int\_{0}^x t^{\\alpha-1} \\exp( -\\frac{t^\\kappa}…

---

## [How can we create more basic Enzyme custom rules?](https://discourse.julialang.org/t/how-can-we-create-more-basic-enzyme-custom-rules/112174)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 3\
**Last updated:** [March 27, 2024, 3:37pm UTC](https://discourse.julialang.org/t/how-can-we-create-more-basic-enzyme-custom-rules/112174 "2024-03-27T15:37:37Z")

</div>

I am trying to create custom rules for Enzyme. I looked at the examples on Enzyme’s official website, but unfortunately could not fully understand them due to difficulty. As a very simple example to try, I created a pr…

---

## [NeuralPDE issue trying to use LuxAMDGPU](https://discourse.julialang.org/t/neuralpde-issue-trying-to-use-luxamdgpu/111567)

<div class="topic-metadata">

**Author:** [@mre](https://discourse.julialang.org/u/mre)\
**Replies:** 15\
**Last updated:** [March 28, 2024, 10:40pm UTC](https://discourse.julialang.org/t/neuralpde-issue-trying-to-use-luxamdgpu/111567 "2024-03-28T22:40:17Z")

</div>

Hi everyone, as a Julia newbie, I tried to solve a simple bvp with NeuralPDE and GPUs. Using LuxCUDA on nvidia hardware, everything was fine. After switching to LuxAMDGPU (and AMD hardware) the code did not work any…

---

## [Discriminate between NaN and Inf in plots](https://discourse.julialang.org/t/discriminate-between-nan-and-inf-in-plots/112171)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 7\
**Last updated:** [March 28, 2024, 6:13pm UTC](https://discourse.julialang.org/t/discriminate-between-nan-and-inf-in-plots/112171 "2024-03-28T18:13:05Z")

</div>

I have a plot where some values originate from devision by 0 and some originate from 0/0, I would like to add new colours to the heatmap to descriminate between them. Does anyone have an idea on how to do this in plots.…

---

## [Accessing children nodes in the SDDP package](https://discourse.julialang.org/t/accessing-children-nodes-in-the-sddp-package/112140)

<div class="topic-metadata">

**Author:** [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Replies:** 8\
**Last updated:** [March 28, 2024, 5:22pm UTC](https://discourse.julialang.org/t/accessing-children-nodes-in-the-sddp-package/112140 "2024-03-28T17:22:37Z")

</div>

I have an optimization problem where one of the constraints is a convex non-linear constraint on the following form: Here w, eta and x are decision variables. All variables with an m index are variables corresponding …

---

## [\`Spy\` function behavior with sparse matrices](https://discourse.julialang.org/t/spy-function-behavior-with-sparse-matrices/112232)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 1:58pm UTC](https://discourse.julialang.org/t/spy-function-behavior-with-sparse-matrices/112232 "2024-03-28T13:58:18Z")

</div>

I am trying to generate sparsity patterns for some matrices for a project. However, I cannot seem to find the necessary command to make all the sparsity patterns the same size. Below is an example and the output: A = sp…

---

## [Strange situation RF Classification: perfect train, test prediction all one category](https://discourse.julialang.org/t/strange-situation-rf-classification-perfect-train-test-prediction-all-one-category/112222)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 1:45pm UTC](https://discourse.julialang.org/t/strange-situation-rf-classification-perfect-train-test-prediction-all-one-category/112222 "2024-03-28T13:45:49Z")

</div>

I am puzzled by an issue with a boolean classification task using RF on a large dimensional dataset (1680 obs x 110 dim) and moderate imbalance (431 vs 1249). train/test partition is random (0.8,0.2) When I train the R…

---

## [Cuda.versioninfo() error "NVML could not be initialized"](https://discourse.julialang.org/t/cuda-versioninfo-error-nvml-could-not-be-initialized/112123)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 10:48am UTC](https://discourse.julialang.org/t/cuda-versioninfo-error-nvml-could-not-be-initialized/112123 "2024-03-28T10:48:45Z")

</div>

When I type CUDA.versioninfo() on a Ubuntu 22.04 box I got the following error: julia\> CUDA.versioninfo() CUDA runtime 12.3, artifact installation CUDA driver 12.3 ┌ Error: Cannot use NVML, as it failed to initialize │ …

---

## [Why CUDA is so slow on y = x\*w + w0?](https://discourse.julialang.org/t/why-cuda-is-so-slow-on-y-x-w-w0/112144)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 10:43am UTC](https://discourse.julialang.org/t/why-cuda-is-so-slow-on-y-x-w-w0/112144 "2024-03-28T10:43:14Z")

</div>

Hi, I am doing my first steps on GPU programming, using the Array interface on CUDA. Wondering why CUDA is so slower than CPU on matrix multiplication: julia\> using CUDA, BenchmarkTools julia\> a = 100; julia\> b = 30; …

---

## [Trying to use the new optimization algorithm: Sophia](https://discourse.julialang.org/t/trying-to-use-the-new-optimization-algorithm-sophia/110259)

<div class="topic-metadata">

**Author:** [@KianH](https://discourse.julialang.org/u/KianH)\
**Replies:** 12\
**Last updated:** [March 28, 2024, 9:47am UTC](https://discourse.julialang.org/t/trying-to-use-the-new-optimization-algorithm-sophia/110259 "2024-03-28T09:47:13Z")

</div>

I am trying to use the new optimization algorithm in Optimization.jl called Sophia, which is the first algorithm that shows up in the link below. However, I seem to get an error message that Sophia is an undefined var…

---

## [Is anyone aware of a parallel implementation of mesh coloring?](https://discourse.julialang.org/t/is-anyone-aware-of-a-parallel-implementation-of-mesh-coloring/112100)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 8:26am UTC](https://discourse.julialang.org/t/is-anyone-aware-of-a-parallel-implementation-of-mesh-coloring/112100 "2024-03-28T08:26:09Z")

</div>

Mesh coloring = graph coloring here (NOT graphics). Thanks for any pointers.

---

## [Least square with multi-value function](https://discourse.julialang.org/t/least-square-with-multi-value-function/47943)

<div class="topic-metadata">

**Author:** [@Bernard\_GODARD](https://discourse.julialang.org/u/Bernard_GODARD)\
**Replies:** 3\
**Last updated:** [March 28, 2024, 4:33am UTC](https://discourse.julialang.org/t/least-square-with-multi-value-function/47943 "2024-03-28T04:33:46Z")

</div>

I have a model which takes 3 independent variables, 4 parameters and returns 2 values. I am trying to fit the parameters to a certain dataset. LsqFit does not seem to like multivalues function but maybe I am not using …

---

## [MethodError in Custom Flux model](https://discourse.julialang.org/t/methoderror-in-custom-flux-model/112204)

<div class="topic-metadata">

**Author:** [@CM1](https://discourse.julialang.org/u/CM1)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 2:25am UTC](https://discourse.julialang.org/t/methoderror-in-custom-flux-model/112204 "2024-03-28T02:25:19Z")

</div>

Hey everyone, I have been trying to get my custom model running, which should be able to optimize both for a set of paramters and some initial conditions of an ODE model. The ODE’s dynamics are defined in ode(), the mod…

---

## [3D terrain graph with colour (as 4th dimension of dataset)](https://discourse.julialang.org/t/3d-terrain-graph-with-colour-as-4th-dimension-of-dataset/112178)

<div class="topic-metadata">

**Author:** [@Qmot](https://discourse.julialang.org/u/Qmot)\
**Replies:** 4\
**Last updated:** [March 27, 2024, 7:54pm UTC](https://discourse.julialang.org/t/3d-terrain-graph-with-colour-as-4th-dimension-of-dataset/112178 "2024-03-27T19:54:43Z")

</div>

Hello, Relatively new to Julia and enjoying it a lot! However, I would like to display data that has 4 dimensions, x, y, z (terrain) with a color that is independent of z. For context I’m trying to display geophysics on…

---

## [Contour goes out of grid in Meshes.jl](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 27, 2024, 3:48pm UTC](https://discourse.julialang.org/t/contour-goes-out-of-grid-in-meshes-jl/112187 "2024-03-27T15:48:06Z")

</div>

I am using Meshes.jl and GLMakie.jl for plotting on irregular grid. Contour of psi\[1,:,:\] (red lines) goes out of the circular sector. I want to apply contour on this irregular grid (circular sector). begin grid = S…

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

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