# Specific Domains

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

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

**Page:** 361

---

## [Possible to combine a PyObject plot and Plots plot for customed layout?](https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463)

<div class="topic-metadata">

**Author:** [@EuRoXy](https://discourse.julialang.org/u/EuRoXy)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 12:08pm UTC](https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463 "2021-06-06T12:08:17Z")

</div>

I have a PyObject plot (geo-map involving projections and features from Cartopy via PyCall), and intend to combine it with violin plots from StatsPlots for a specific layout. Trying and searching around find no success. …

---

## [Extending AD to JuliaImages](https://discourse.julialang.org/t/extending-ad-to-juliaimages/62460)

<div class="topic-metadata">

**Author:** [@SomTambe](https://discourse.julialang.org/u/SomTambe)\
**Replies:** 0\
**Last updated:** [June 6, 2021, 4:31am UTC](https://discourse.julialang.org/t/extending-ad-to-juliaimages/62460 "2021-06-06T04:31:51Z")

</div>

Hi I’m Som! I’m working on extending AD support to the Images.jl ecosystem this summer as a part of SoC. I am building the code here at DiffImages.jl. We have our discussions public at the #discussions tab of the repo. …

---

## [2D plot flush with 3D axis?](https://discourse.julialang.org/t/2d-plot-flush-with-3d-axis/62289)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 6\
**Last updated:** [June 6, 2021, 3:43am UTC](https://discourse.julialang.org/t/2d-plot-flush-with-3d-axis/62289 "2021-06-06T03:43:07Z")

</div>

I’m trying to plot a 2D graph underneath a 3D plot. The following is my hacky approach, using GLMakie fig = Figure() menu = Menu(fig, options = \[1,2\]) fig\[1, 1\] = vgrid!( Label(fig, "Index a", width = nothing),menu…

---

## [Expanding Named Tuples](https://discourse.julialang.org/t/expanding-named-tuples/62435)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 13\
**Last updated:** [June 5, 2021, 8:13pm UTC](https://discourse.julialang.org/t/expanding-named-tuples/62435 "2021-06-05T20:13:18Z")

</div>

Starting from this situation (or similar), julia\> hcat(DataFrame(a=\[1,2\]), \[(b=1,c=2), (b=3,c=4)\]) 2×2 DataFrame Row │ a x1 │ Int64 NamedTup… ─────┼─────────────────────── 1 │ 1 (b…

---

## [Ternary axis with PGFplotsX?](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 2\
**Last updated:** [June 5, 2021, 6:14pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442 "2021-06-05T18:14:23Z")

</div>

Is there any way to use ternary axes in PGFplotsX.i had a stab at passing in raw latex arguments. But I guess it probably won’t be possible, since the choice of axis type is specified by choice of function eg Axis(args) …

---

## [When will Julia compete with Spark?](https://discourse.julialang.org/t/when-will-julia-compete-with-spark/25218)

<div class="topic-metadata">

**Author:** [@merlin](https://discourse.julialang.org/u/merlin)\
**Replies:** 16\
**Last updated:** [June 5, 2021, 5:09pm UTC](https://discourse.julialang.org/t/when-will-julia-compete-with-spark/25218 "2021-06-05T17:09:45Z")

</div>

My org uses Spark + EMR to query and transform static files on S3 and output to files that either get loaded to a DB or used as input for analysis. It seems like Julia could also do this and do it well, of course Spark …

---

## [Tufte/Offset/Despine Axes in Makie or other plot libraries](https://discourse.julialang.org/t/tufte-offset-despine-axes-in-makie-or-other-plot-libraries/62364)

<div class="topic-metadata">

**Author:** [@nero57](https://discourse.julialang.org/u/nero57)\
**Replies:** 2\
**Last updated:** [June 5, 2021, 3:26pm UTC](https://discourse.julialang.org/t/tufte-offset-despine-axes-in-makie-or-other-plot-libraries/62364 "2021-06-05T15:26:07Z")

</div>

Hello, I’m wondering if it is possible to make Tufted/Offset/Despined axes in pure Julia. This is a basic example (this was generated in python using seaborn.despine. You can do the same in R and pgfplots): I looked…

---

## [Zygote - parametrize matrix such that gradient is only performed on selected coefficients](https://discourse.julialang.org/t/zygote-parametrize-matrix-such-that-gradient-is-only-performed-on-selected-coefficients/62393)

<div class="topic-metadata">

**Author:** [@jgbrasier](https://discourse.julialang.org/u/jgbrasier)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 5:34am UTC](https://discourse.julialang.org/t/zygote-parametrize-matrix-such-that-gradient-is-only-performed-on-selected-coefficients/62393 "2021-06-05T05:34:14Z")

</div>

I was wondering if it was possible to parametrize matrices such that zygote’s gradient would only be performed on the selected coefficients of the matrix. Some dummy code would look like: theta = randn(2) W = \[theta\[1\]…

---

## [Custom NeuralODE layer trains innefficiently](https://discourse.julialang.org/t/custom-neuralode-layer-trains-innefficiently/61602)

<div class="topic-metadata">

**Author:** [@Sunny](https://discourse.julialang.org/u/Sunny)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 3:13pm UTC](https://discourse.julialang.org/t/custom-neuralode-layer-trains-innefficiently/61602 "2021-06-04T15:13:21Z")

</div>

I slightly changed a NeuralODE layer and added a few new weights parameters, but it can’t fit the simple data and show the warning ┌ Warning: dt \<= dtmin. Aborting. There is either an error in your model specification …

---

## [CUDA.jl finds CUDA installation but cannot execute any commands](https://discourse.julialang.org/t/cuda-jl-finds-cuda-installation-but-cannot-execute-any-commands/62368)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 1:21pm UTC](https://discourse.julialang.org/t/cuda-jl-finds-cuda-installation-but-cannot-execute-any-commands/62368 "2021-06-04T13:21:29Z")

</div>

I have installed CUDA.jl . I have checked with JULIA\_DEBUG=CUDA and CUDA.version() that indeed the local CUDA install is being used. But to my chagrin, not even the most simple code works: julia\> using CUDA julia\> CUDA.…

---

## [Remove identical columns from matrix](https://discourse.julialang.org/t/remove-identical-columns-from-matrix/62378)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 9\
**Last updated:** [June 4, 2021, 8:16am UTC](https://discourse.julialang.org/t/remove-identical-columns-from-matrix/62378 "2021-06-04T08:16:44Z")

</div>

Suppose I have a matrix with several columns. What’s an easy way to remove identical columns? To provide an example, I want to get matrix x below if I start from matrix xx. x = rand(10, 5) xx = \[x x\[:, 2\] x\[:, 5\]\]

---

## [Leiden algorithim implementation in Julia](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 5:31am UTC](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910 "2021-06-04T05:31:55Z")

</div>

I was wondering if anyone was aware of an implementation of the Leiden algorithm for Julia? It is a community detection algorithm which avoids the disconnected /poorly connected community problem associated with the louv…

---

## [Right solver for JuMP to find every solution of a linear system of equations with integer solutions](https://discourse.julialang.org/t/right-solver-for-jump-to-find-every-solution-of-a-linear-system-of-equations-with-integer-solutions/44709)

<div class="topic-metadata">

**Author:** [@damaro](https://discourse.julialang.org/u/damaro)\
**Replies:** 28\
**Last updated:** [June 4, 2021, 5:03am UTC](https://discourse.julialang.org/t/right-solver-for-jump-to-find-every-solution-of-a-linear-system-of-equations-with-integer-solutions/44709 "2021-06-04T05:03:25Z")

</div>

I have been struggling to find an equivalent Julia function to Mathematica FindInstance. The reason behind this is to find every solution of a system of equations with positive integer solutions. I provide a concrete …

---

## [Flux came a long way](https://discourse.julialang.org/t/flux-came-a-long-way/62288)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 3\
**Last updated:** [June 3, 2021, 9:12pm UTC](https://discourse.julialang.org/t/flux-came-a-long-way/62288 "2021-06-03T21:12:59Z")

</div>

I was following the Keras presentation at the Google IO 2021 by Martin Gorner and François Chollet (creator of Keras) about convolutional varitional autoencoder (VAE). As a way to learn about VAE, I re-implemented the n…

---

## [Flux/DiffEqFlux: error when a loss function does not use all the weights of the NN](https://discourse.julialang.org/t/flux-diffeqflux-error-when-a-loss-function-does-not-use-all-the-weights-of-the-nn/61849)

<div class="topic-metadata">

**Author:** [@SvenDummer](https://discourse.julialang.org/u/SvenDummer)\
**Replies:** 8\
**Last updated:** [June 3, 2021, 5:11pm UTC](https://discourse.julialang.org/t/flux-diffeqflux-error-when-a-loss-function-does-not-use-all-the-weights-of-the-nn/61849 "2021-06-03T17:11:40Z")

</div>

Hi everyone, I have a question that is related to training a Neural Network using the sciml\_train function of DiffEqFlux.jl. Context: I want to train a Neural Stochastic Differential Equation where the loss explicitly …

---

## [Testing your DP model after training](https://discourse.julialang.org/t/testing-your-dp-model-after-training/62268)

<div class="topic-metadata">

**Author:** [@Linda\_tK](https://discourse.julialang.org/u/Linda_tK)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 4:48pm UTC](https://discourse.julialang.org/t/testing-your-dp-model-after-training/62268 "2021-06-03T16:48:14Z")

</div>

Hi there, I have trained a model to approximate a system of differential equations using certain initial conditions and parameters. I would now like to see how my models performs if I use different starting conditions. I…

---

## [Parallel prefix sum with CUDA.jl](https://discourse.julialang.org/t/parallel-prefix-sum-with-cuda-jl/62316)

<div class="topic-metadata">

**Author:** [@adam246](https://discourse.julialang.org/u/adam246)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 12:08pm UTC](https://discourse.julialang.org/t/parallel-prefix-sum-with-cuda-jl/62316 "2021-06-03T12:08:24Z")

</div>

Is there a “parallel prefix sum” function implemented in CUDA.jl? If not, I’d offer to write one, but am relatively new to Julia and would need some examples/documentation on how to do that.

---

## [Array of @NLexpression](https://discourse.julialang.org/t/array-of-nlexpression/62324)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 8:43am UTC](https://discourse.julialang.org/t/array-of-nlexpression/62324 "2021-06-03T08:43:31Z")

</div>

can we add array of nl expressions with name in macro using JuMP mm=Model() for i in 1:5 @NLexpression(mm,pp\[i\],i) end ERROR: An object of name pp is already attached to this model. If this is intended, …

---

## [How to do division in a linear model with JuMP](https://discourse.julialang.org/t/how-to-do-division-in-a-linear-model-with-jump/62077)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 9\
**Last updated:** [June 3, 2021, 12:45am UTC](https://discourse.julialang.org/t/how-to-do-division-in-a-linear-model-with-jump/62077 "2021-06-03T00:45:30Z")

</div>

There is a constraint “P=Q./R”, where P and Q are vector{variableRef}, Q is array{Float64,2} JuMP model is as follow: using JuMP,Gurobi,LinearAlgebra model=Model(Gurobi.Optimizer) Q=\[1,2,3\] …

---

## [Obtain gradient of function at end of iterations in Optim.jl](https://discourse.julialang.org/t/obtain-gradient-of-function-at-end-of-iterations-in-optim-jl/62244)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 3\
**Last updated:** [June 3, 2021, 12:02am UTC](https://discourse.julialang.org/t/obtain-gradient-of-function-at-end-of-iterations-in-optim-jl/62244 "2021-06-03T00:02:53Z")

</div>

Is it possible to obtain the gradient of the objective function at the iterations limit? There is a field in the object returned that is named g\_residual, that would give me the max norm of the gradient, but I am interes…

---

## [RNN only works with Float32?](https://discourse.julialang.org/t/rnn-only-works-with-float32/62292)

<div class="topic-metadata">

**Author:** [@EdgarHR](https://discourse.julialang.org/u/EdgarHR)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 7:11pm UTC](https://discourse.julialang.org/t/rnn-only-works-with-float32/62292 "2021-06-02T19:11:09Z")

</div>

Hello everyone, I wanted to build an RNN model and it seems to be the case that Flux only accepts Float32 as inputs. For instance if I run the following code using Flux rnn = RNN(1,1) rnn(\[1\]) # Gives error rnn(\[conver…

---

## [Custom RNN cell. Help needed to improve performance](https://discourse.julialang.org/t/custom-rnn-cell-help-needed-to-improve-performance/60536)

<div class="topic-metadata">

**Author:** [@lungd](https://discourse.julialang.org/u/lungd)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 5:10pm UTC](https://discourse.julialang.org/t/custom-rnn-cell-help-needed-to-improve-performance/60536 "2021-06-02T17:10:02Z")

</div>

I am working on an implementation of a sparsely connected RNN cell. The training of the cell is very slow. My code is not completely type stable and there are for sure some rookie mistakes as well. I hope that this is t…

---

## [Makie @lift for a function with multiple outputs?](https://discourse.julialang.org/t/makie-lift-for-a-function-with-multiple-outputs/62236)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 1:54pm UTC](https://discourse.julialang.org/t/makie-lift-for-a-function-with-multiple-outputs/62236 "2021-06-02T13:54:25Z")

</div>

I’m trying to make a menu in Makie which changes the plot. Basically this: using GLMakie fig = Figure() menu = Menu(fig, options = \[1,2\]) fig\[1, 1\] = vgrid!( Label(fig, "Index a", width = nothing),menu; tellhei…

---

## [Flux: training loop logging for custom structure and model](https://discourse.julialang.org/t/flux-training-loop-logging-for-custom-structure-and-model/62211)

<div class="topic-metadata">

**Author:** [@jgbrasier](https://discourse.julialang.org/u/jgbrasier)\
**Replies:** 7\
**Last updated:** [June 2, 2021, 9:41am UTC](https://discourse.julialang.org/t/flux-training-loop-logging-for-custom-structure-and-model/62211 "2021-06-02T09:41:27Z")

</div>

Hello everyone I am pretty new to using Julia for ML. I am training a custom model (Kalman Filter) that is a mutable structure. I am trying to update and log the parameters at each time step (in my case for each measure…

---

## [Lines vs line](https://discourse.julialang.org/t/lines-vs-line/62235)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 2:12am UTC](https://discourse.julialang.org/t/lines-vs-line/62235 "2021-06-02T02:12:46Z")

</div>

Afaict, this function makes one curve, not multiple. Why is it named “lines” plural? I always forget how to use it and have to check the docs. I think it will be easier to remember if it uses the name line! curve!. http…

---

## [What is the difference between fontsize and textsize?](https://discourse.julialang.org/t/what-is-the-difference-between-fontsize-and-textsize/62228)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 9:19pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-fontsize-and-textsize/62228 "2021-06-01T21:19:53Z")

</div>

textsize is in Label, fontsize is in Theme. Why are there two? https://makie.juliaplots.org/stable/makielayout/label.html https://makie.juliaplots.org/stable/theming.html

---

## [Multithread on JuMP for Benders cut](https://discourse.julialang.org/t/multithread-on-jump-for-benders-cut/62189)

<div class="topic-metadata">

**Author:** [@Hilaire\_Foillard](https://discourse.julialang.org/u/Hilaire_Foillard)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:33pm UTC](https://discourse.julialang.org/t/multithread-on-jump-for-benders-cut/62189 "2021-06-01T20:33:52Z")

</div>

Hello, I’m looking for multithreading for my Benders cuts: indeed, the subproblem can be decomposed in several independent subproblems that can be executed in parallel (i use CPLEX solver). When I run my program, my note…

---

## [How to pass a SymPy expression supported by JuMP](https://discourse.julialang.org/t/how-to-pass-a-sympy-expression-supported-by-jump/62109)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 8:31pm UTC](https://discourse.julialang.org/t/how-to-pass-a-sympy-expression-supported-by-jump/62109 "2021-06-01T20:31:16Z")

</div>

I would like to convert a SymPy expression in order to use as an objetive function in JuMP. Suppose my variable involves two variables p \[1,1\] and p \[1,2\]. using SymPy using JuMP, Ipopt # expr is my SymPy expression…

---

## [Numerical integration using hcubature\\](https://discourse.julialang.org/t/numerical-integration-using-hcubature/62221)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:11pm UTC](https://discourse.julialang.org/t/numerical-integration-using-hcubature/62221 "2021-06-01T20:11:10Z")

</div>

Hello everyone, I’m transitioning from python to Julia and I’m trying to compute some integrals using hcubature I’m trying to compute the following integral, for which the constant \\beta is equal to 1 As seen from …

---

## [Plot 3D triangle mesh with different colours on front and back side](https://discourse.julialang.org/t/plot-3d-triangle-mesh-with-different-colours-on-front-and-back-side/61997)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 12\
**Last updated:** [June 1, 2021, 3:45pm UTC](https://discourse.julialang.org/t/plot-3d-triangle-mesh-with-different-colours-on-front-and-back-side/61997 "2021-06-01T15:45:57Z")

</div>

Hi, Guess this is so trivial no one bothered to ask… :wink: I need to check orientation of triangles in received geometry (triangle mesh). Seems the easiest way would be to set different colours for front and back sid…

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

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