# Specific Domains

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

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

**Page:** 321

---

## [Plotting big data sets?](https://discourse.julialang.org/t/plotting-big-data-sets/71893)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [November 22, 2021, 2:56pm UTC](https://discourse.julialang.org/t/plotting-big-data-sets/71893 "2021-11-22T14:56:29Z")

</div>

I suggested Julia to an industry contact. His response: “Can Julia plot really big datasets?” What he meant was: he has timeseries of a few million elements, and want to just dump the entire series on the plotting routi…

---

## [Problem with Plotting](https://discourse.julialang.org/t/problem-with-plotting/71889)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 3\
**Last updated:** [November 22, 2021, 11:14am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889 "2021-11-22T11:14:55Z")

</div>

Hey everyone, I tried to plot some graphs today, but somehow the font for the labels is not sharp and the commands for the fontsize get ignored. I have tried downgrading Plots to 1.22, but that did not help. I also upgr…

---

## [GLMakie -- How to change default window configuration?](https://discourse.julialang.org/t/glmakie-how-to-change-default-window-configuration/71861)

<div class="topic-metadata">

**Author:** [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Replies:** 0\
**Last updated:** [November 21, 2021, 3:25pm UTC](https://discourse.julialang.org/t/glmakie-how-to-change-default-window-configuration/71861 "2021-11-21T15:25:53Z")

</div>

Hi, I would like to modify the default window configuration for my GLMakie installation; in particular, I want the effect of running GLMakie.set\_window\_config!(focus\_on\_show=true) whenever I import GLMakie, without havi…

---

## [Makie - How do I create an image from a HSV matrix of pixels?](https://discourse.julialang.org/t/makie-how-do-i-create-an-image-from-a-hsv-matrix-of-pixels/71835)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 0\
**Last updated:** [November 20, 2021, 4:00pm UTC](https://discourse.julialang.org/t/makie-how-do-i-create-an-image-from-a-hsv-matrix-of-pixels/71835 "2021-11-20T16:00:49Z")

</div>

I am converting my Mandelbrot display/interactions program from using GtkReactive/ImageView to Makie. In my GtkReactive/ImageView version my HSV array is defined as points = Array{HSV{Float64},2}(undef, y\_size, x\_size) …

---

## [Efficient way to add a value of column to all rows conditioned on another column by group](https://discourse.julialang.org/t/efficient-way-to-add-a-value-of-column-to-all-rows-conditioned-on-another-column-by-group/71784)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 3\
**Last updated:** [November 20, 2021, 12:49am UTC](https://discourse.julialang.org/t/efficient-way-to-add-a-value-of-column-to-all-rows-conditioned-on-another-column-by-group/71784 "2021-11-20T00:49:31Z")

</div>

My data has 3 columns (id, time, conc). I am looking for a concise way to add the column (using Chain.jl and DataFramesMeta.jl) as described in the title. Example code is below: df = DataFrame(id = sort(repeat(\[1, 2, 3\]…

---

## [Distributions.loglikelihood](https://discourse.julialang.org/t/distributions-loglikelihood/71732)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 16\
**Last updated:** [November 19, 2021, 4:38pm UTC](https://discourse.julialang.org/t/distributions-loglikelihood/71732 "2021-11-19T16:38:59Z")

</div>

Can someone please explain Distributions.loglikelihood? A likelihood is a function of the parameters, but here it seems to be just another name for a broadcasted logpdf, a function of the data. Maybe there’s a history be…

---

## [Mpi timing](https://discourse.julialang.org/t/mpi-timing/35953)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 12:58pm UTC](https://discourse.julialang.org/t/mpi-timing/35953 "2021-11-19T12:58:01Z")

</div>

Hi, I am learning the MPI.jl package. At some point I thought I understand how JIT works, but maybe not. I may need someone help me clarify some basic concepts regarding the MPI usages and Julia: By executing command…

---

## [Zoom a \`CairoMakie\` mesh plot](https://discourse.julialang.org/t/zoom-a-cairomakie-mesh-plot/71739)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 4\
**Last updated:** [November 19, 2021, 8:44am UTC](https://discourse.julialang.org/t/zoom-a-cairomakie-mesh-plot/71739 "2021-11-19T08:44:45Z")

</div>

CairoMakie can do a 3d plot of a mesh; e.g. using CairoMakie save("mesh.png", plot(\[1. 0 0;0 1 0;0 0 1;0 0 0\],\[1 2 3;2 3 4\])) How is it possible to zoom such a picture? I tried calling zoom!(m.figure.scene, \[0,0,0\],10.…

---

## [Options for Sparse Distributed Linear Algebra](https://discourse.julialang.org/t/options-for-sparse-distributed-linear-algebra/71744)

<div class="topic-metadata">

**Author:** [@lucasbanting](https://discourse.julialang.org/u/lucasbanting)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 7:52am UTC](https://discourse.julialang.org/t/options-for-sparse-distributed-linear-algebra/71744 "2021-11-19T07:52:21Z")

</div>

What is the current state of sparse distributed linear algebra in Julia? I am interested in switching from C++ to Julia for finite element codes. In C PETSc seems to be the best option for sparse distributed linear alge…

---

## [Problems with Flux NN regression](https://discourse.julialang.org/t/problems-with-flux-nn-regression/71714)

<div class="topic-metadata">

**Author:** [@Bitt](https://discourse.julialang.org/u/Bitt)\
**Replies:** 1\
**Last updated:** [November 19, 2021, 7:39am UTC](https://discourse.julialang.org/t/problems-with-flux-nn-regression/71714 "2021-11-19T07:39:03Z")

</div>

I am trying to make a regression with NN using Flux. I have separated the dataset in the train/test parts and implemented a simple neural network. x\_train, x\_test, y\_train, y\_test = train\_test\_split(convert(Array, x), c…

---

## [Find max value in density plot](https://discourse.julialang.org/t/find-max-value-in-density-plot/48950)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 7\
**Last updated:** [November 19, 2021, 4:31am UTC](https://discourse.julialang.org/t/find-max-value-in-density-plot/48950 "2021-11-19T04:31:48Z")

</div>

How do I get the max value of the graph in density(data?) (I want to plot a line on the plot to mark the mean value, as well as two other values. So I need to figure out about how big the plot area is in y-direction, s…

---

## [User-cut with CPLEX](https://discourse.julialang.org/t/user-cut-with-cplex/71490)

<div class="topic-metadata">

**Author:** [@Matheus\_Diogenes\_And](https://discourse.julialang.org/u/Matheus_Diogenes_And)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 4:23am UTC](https://discourse.julialang.org/t/user-cut-with-cplex/71490 "2021-11-19T04:23:28Z")

</div>

Greetings. This thread is related to this one. I am trying to use user-cut with JuMP 0.21.4, Julia 1.6.2, and CPLEX 12.10. Below follows the code I am running. using JuMP, CPLEX model = direct\_model(CPLEX.Optimizer())…

---

## [Getting non-vectorized code to the speed of vectorized ones](https://discourse.julialang.org/t/getting-non-vectorized-code-to-the-speed-of-vectorized-ones/71525)

<div class="topic-metadata">

**Author:** [@raphaelchinchilla](https://discourse.julialang.org/u/raphaelchinchilla)\
**Replies:** 22\
**Last updated:** [November 18, 2021, 8:42pm UTC](https://discourse.julialang.org/t/getting-non-vectorized-code-to-the-speed-of-vectorized-ones/71525 "2021-11-18T20:42:48Z")

</div>

I am not new to Julia, but I am not really a regular user either. I am trying to make a code that is non vectorized to achieve the performance of a vectorized one, but I cannot do it. Here is the problem in general lines…

---

## [Linux Framebuffer and Julia](https://discourse.julialang.org/t/linux-framebuffer-and-julia/71743)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 8:41pm UTC](https://discourse.julialang.org/t/linux-framebuffer-and-julia/71743 "2021-11-18T20:41:05Z")

</div>

Hello, Linux framebuffer (aka fbdev) is a graphic hardware-independent abstraction layer to show graphics on a computer monitor, typically on the system console. It’s generally available as /dev/fb0 or /dev/fb1 device. …

---

## [Calculating YoY Rate of Change on DF](https://discourse.julialang.org/t/calculating-yoy-rate-of-change-on-df/71715)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 6:44pm UTC](https://discourse.julialang.org/t/calculating-yoy-rate-of-change-on-df/71715 "2021-11-18T18:44:51Z")

</div>

Hello Folks: I have a DF that looks like: Year = (2016:1:2021,6) Col1= rand(60:0.5:65, 6) Col2 = rand(20:0.5:25, 6) I would like to calculate the rate of change starting from year 2016 for both Col1 and Col2. Might…

---

## [Why is my custom plot a scene in Makie.jl](https://discourse.julialang.org/t/why-is-my-custom-plot-a-scene-in-makie-jl/71733)

<div class="topic-metadata">

**Author:** [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Replies:** 9\
**Last updated:** [November 18, 2021, 5:28pm UTC](https://discourse.julialang.org/t/why-is-my-custom-plot-a-scene-in-makie-jl/71733 "2021-11-18T17:28:27Z")

</div>

I defined my own recipe for animation in Makie.jl and I wanted to rotate that scene. After a lot of trial and error I tried rotating the plot object, by adding to the method function plot!(customplot::CustomPlot) ..…

---

## [Using MixtureModels (from Distributions.jl) in Turing? Issues with posterior prediction](https://discourse.julialang.org/t/using-mixturemodels-from-distributions-jl-in-turing-issues-with-posterior-prediction/71617)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 3:48pm UTC](https://discourse.julialang.org/t/using-mixturemodels-from-distributions-jl-in-turing-issues-with-posterior-prediction/71617 "2021-11-18T15:48:23Z")

</div>

I am trying to fit a kernel mixture model in Turing. It seems to work for estimation, but gives an error when trying to use predict. I’d be curious if anyone has a suggestion for a fix. using Distributions, Turing # Un…

---

## [Position Based Dynamics](https://discourse.julialang.org/t/position-based-dynamics/70559)

<div class="topic-metadata">

**Author:** [@vpuri3](https://discourse.julialang.org/u/vpuri3)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 6:42am UTC](https://discourse.julialang.org/t/position-based-dynamics/70559 "2021-11-18T06:42:42Z")

</div>

hi all, I’m new to robotics and was wondering if anybody has thoughts on Position Based Dynamics methods: https://matthias-research.github.io/pages/publications/smallsteps.pdf. They seem to be able to account for constra…

---

## [Eigvals pinv](https://discourse.julialang.org/t/eigvals-pinv/67373)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 6:18am UTC](https://discourse.julialang.org/t/eigvals-pinv/67373 "2021-11-18T06:18:32Z")

</div>

I´m trying to implement a relatively complex model that I found in literature. It involves to calculate the spectrum of a linearized system in order to evaluate the stability of the steady-state solution. Thus I´m using …

---

## [SC21: "Comparing Julia to Performance Portable Parallel Programming Models for HPC"](https://discourse.julialang.org/t/sc21-comparing-julia-to-performance-portable-parallel-programming-models-for-hpc/71686)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 2\
**Last updated:** [November 17, 2021, 10:01pm UTC](https://discourse.julialang.org/t/sc21-comparing-julia-to-performance-portable-parallel-programming-models-for-hpc/71686 "2021-11-17T22:01:36Z")

</div>

SCI21 paper: Comparing Julia to Performance Portable Parallel Programming Models for HPC \[pdf\] Index Terms—Julia, OpenMP, OpenCL, Kokkos, CUDA, HIP, Performance Portability, Programming Models, GPUs context: Present…

---

## [Results NLP problem](https://discourse.julialang.org/t/results-nlp-problem/71673)

<div class="topic-metadata">

**Author:** [@Francisco\_Javier\_Mar](https://discourse.julialang.org/u/Francisco_Javier_Mar)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 5:49pm UTC](https://discourse.julialang.org/t/results-nlp-problem/71673 "2021-11-17T17:49:58Z")

</div>

Hello. Could you clarify a question for me. I am having certain problems with my mathematical model, this model is non-linear and the ipopt is the solver chosen for the resolution of the problem. My model has its minimum…

---

## [Block RW Metropolis Hastings](https://discourse.julialang.org/t/block-rw-metropolis-hastings/71640)

<div class="topic-metadata">

**Author:** [@donk\_fish](https://discourse.julialang.org/u/donk_fish)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 4:29pm UTC](https://discourse.julialang.org/t/block-rw-metropolis-hastings/71640 "2021-11-17T16:29:42Z")

</div>

Hi Is there a package implementing a block RWMH algorithm? With block, I mean partitioning the parameter vector. Preferably one where I can choose the partition ex ante, but one with random blocks every draw works as w…

---

## [CUDA eigenvalues of a sparse matrix](https://discourse.julialang.org/t/cuda-eigenvalues-of-a-sparse-matrix/46851)

<div class="topic-metadata">

**Author:** [@8me](https://discourse.julialang.org/u/8me)\
**Replies:** 8\
**Last updated:** [November 17, 2021, 1:51pm UTC](https://discourse.julialang.org/t/cuda-eigenvalues-of-a-sparse-matrix/46851 "2021-11-17T13:51:20Z")

</div>

I’m trying to optimize the eigenvalue (and eigenvector) calculation for a neutrino oscillation package which is currently under development (https://github.com/KM3NeT/Neurthino.jl). The problem consists of a lot of smal…

---

## [How to Maximize CPU Utilization - @spawn Assigning to Busy Workers - Use pmap Instead](https://discourse.julialang.org/t/how-to-maximize-cpu-utilization-spawn-assigning-to-busy-workers-use-pmap-instead/53648)

<div class="topic-metadata">

**Author:** [@dburch](https://discourse.julialang.org/u/dburch)\
**Replies:** 17\
**Last updated:** [November 17, 2021, 12:29pm UTC](https://discourse.julialang.org/t/how-to-maximize-cpu-utilization-spawn-assigning-to-busy-workers-use-pmap-instead/53648 "2021-11-17T12:29:31Z")

</div>

This is partially a performance question. I have a parallel process that is working. However, by using @spawn, all of the tasks are spawned to the available workers before any of the tasks start running. It doesn’t seem …

---

## [How to add norm of gradient to a loss function?](https://discourse.julialang.org/t/how-to-add-norm-of-gradient-to-a-loss-function/69873)

<div class="topic-metadata">

**Author:** [@AlexLewandowski](https://discourse.julialang.org/u/AlexLewandowski)\
**Replies:** 16\
**Last updated:** [November 17, 2021, 7:56am UTC](https://discourse.julialang.org/t/how-to-add-norm-of-gradient-to-a-loss-function/69873 "2021-11-17T07:56:08Z")

</div>

I am trying to add a gradient norm penalty to a loss function similar to WGAN-GP (\[1704.00028\] Improved Training of Wasserstein GANs, Alg 1, Lines 7-9). However, I am running into problems with mutation. Is there another…

---

## [How can I improve the spacing in this layout with multiple axis of aspect ratio 1?](https://discourse.julialang.org/t/how-can-i-improve-the-spacing-in-this-layout-with-multiple-axis-of-aspect-ratio-1/71634)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 4\
**Last updated:** [November 17, 2021, 5:02am UTC](https://discourse.julialang.org/t/how-can-i-improve-the-spacing-in-this-layout-with-multiple-axis-of-aspect-ratio-1/71634 "2021-11-17T05:02:45Z")

</div>

Hi! Do you have any advice to make this layout look nicer? I am perturbed by the different row gap between rows 1-2 and 2-3, but I cannot make them even. Original code: using CairoMakie set\_theme!(fontsize = 30, Axi…

---

## [Flux: no method matching ndims(::ChainRulesCore.NoTangent)](https://discourse.julialang.org/t/flux-no-method-matching-ndims-chainrulescore-notangent/71479)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 2:06am UTC](https://discourse.julialang.org/t/flux-no-method-matching-ndims-chainrulescore-notangent/71479 "2021-11-17T02:06:49Z")

</div>

Consider the MWE below. using Flux model = Chain( RNN(1, 128), Dense(128, 1) ); # one feature, sequence length = 3, batch size = 6 x = \[rand(Float32, 1, 6) for \_ = 1:3\] y = rand(Float32, 1, 6) function loss(…

---

## [Implicit gradients with mutable struct returns an error](https://discourse.julialang.org/t/implicit-gradients-with-mutable-struct-returns-an-error/71455)

<div class="topic-metadata">

**Author:** [@a709e9a0c](https://discourse.julialang.org/u/a709e9a0c)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 1:15am UTC](https://discourse.julialang.org/t/implicit-gradients-with-mutable-struct-returns-an-error/71455 "2021-11-17T01:15:28Z")

</div>

Hi, When I try to compute the gradients of a mutable struct via implicit gradients, this code fails, but the same exact code works when the struct is not mutable: using Zygote mutable struct Linear\_ W::Array{Float…

---

## [Performance of creating model with many terms](https://discourse.julialang.org/t/performance-of-creating-model-with-many-terms/71623)

<div class="topic-metadata">

**Author:** [@kiranshila](https://discourse.julialang.org/u/kiranshila)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 12:40am UTC](https://discourse.julialang.org/t/performance-of-creating-model-with-many-terms/71623 "2021-11-17T00:40:29Z")

</div>

Hey everyone, I am working on implementing SVMs using JuMP and am running into some performance issues when trying to set up the Dual problem. Specifically, the setup of the objective function is proving to be very cos…

---

## [Memory consumption growth with many large MILP's in JuMP](https://discourse.julialang.org/t/memory-consumption-growth-with-many-large-milps-in-jump/61895)

<div class="topic-metadata">

**Author:** [@nlaws](https://discourse.julialang.org/u/nlaws)\
**Replies:** 63\
**Last updated:** [November 16, 2021, 11:21pm UTC](https://discourse.julialang.org/t/memory-consumption-growth-with-many-large-milps-in-jump/61895 "2021-11-16T23:21:34Z")

</div>

We are running into an issue with JuMP models run in an API that are leading to our servers running out of RAM. Oddly, it does appear that the memory consumption plateaus after some time/iterations. Also, it can be recre…

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

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