# Specific Domains

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

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

**Page:** 311

---

## [Access matplotlib/PyPlot object of Plots.jl plot](https://discourse.julialang.org/t/access-matplotlib-pyplot-object-of-plots-jl-plot/74422)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 3\
**Last updated:** [January 15, 2022, 8:01pm UTC](https://discourse.julialang.org/t/access-matplotlib-pyplot-object-of-plots-jl-plot/74422 "2022-01-15T20:01:31Z")

</div>

I plot using Plots; pyplot() How can I access the created PyPlot.Figure(PyObject \<Figure size 640x480 with 1 Axes\>) and PyObject \<AxesSubplot:\> ? (I can get those when I use PyPlot directly, but then I’m not using Plots…

---

## [Annotations in groupedbar are broken?](https://discourse.julialang.org/t/annotations-in-groupedbar-are-broken/74418)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 1\
**Last updated:** [January 15, 2022, 2:56pm UTC](https://discourse.julialang.org/t/annotations-in-groupedbar-are-broken/74418 "2022-01-15T14:56:15Z")

</div>

I tried to add some numbers to each bar in groupedbar of StatsPlots and it always repeats the numbers of the first group. The error was reproduced in pgfplotsx, pyplot, and plotly as backends. MWE: x=\["A","A","B","B"\] …

---

## [How to efficiently build AD-compatible matrices line by line](https://discourse.julialang.org/t/how-to-efficiently-build-ad-compatible-matrices-line-by-line/74632)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 17\
**Last updated:** [January 15, 2022, 3:46am UTC](https://discourse.julialang.org/t/how-to-efficiently-build-ad-compatible-matrices-line-by-line/74632 "2022-01-15T03:46:01Z")

</div>

I find myself frequently needing a construct like the following: a = Array{Float32}(undef, 100, 5) for i=1:100 a\[i, :\] = \<a vector\> end which works fine in plain Julia, and is highly efficient, but gives Flux fits …

---

## [Flailing on evaluating batches as matrices of features](https://discourse.julialang.org/t/flailing-on-evaluating-batches-as-matrices-of-features/74446)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 6\
**Last updated:** [January 14, 2022, 4:13pm UTC](https://discourse.julialang.org/t/flailing-on-evaluating-batches-as-matrices-of-features/74446 "2022-01-14T16:13:48Z")

</div>

This is my first significant Flux program, be gentle :wink: I have a model m. It takes two vectors as input (via a Parallel(vcat...) layer), the first of which is a vector of floats and the second is a one-hot. I can ge…

---

## [Performance of Linear Programming Problem](https://discourse.julialang.org/t/performance-of-linear-programming-problem/74569)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 8:03pm UTC](https://discourse.julialang.org/t/performance-of-linear-programming-problem/74569 "2022-01-13T20:03:10Z")

</div>

Hi everybody! I am trying to improve the performance of a conventional Linear Programming Problem which I am solving by calling Gurobi through JuMP. A MWE is the following using JuMP, Ipopt, Optim, LinearAlgebra, Random…

---

## [MathOptInterface and Symbolics.jl](https://discourse.julialang.org/t/mathoptinterface-and-symbolics-jl/74575)

<div class="topic-metadata">

**Author:** [@sidpatil](https://discourse.julialang.org/u/sidpatil)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 7:53pm UTC](https://discourse.julialang.org/t/mathoptinterface-and-symbolics-jl/74575 "2022-01-13T19:53:20Z")

</div>

In the announcement for Symbolics.jl, JuMP is mentioned due to its independent implementation of symbolic variables and expressions. Is it feasible to refactor/rewrite MathOptInterface to use Symbolics.jl variables and …

---

## [Import TensorFlow lite model](https://discourse.julialang.org/t/import-tensorflow-lite-model/74572)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 7:09pm UTC](https://discourse.julialang.org/t/import-tensorflow-lite-model/74572 "2022-01-13T19:09:23Z")

</div>

I have a model that’s available as a .tflite file, and I’d like to retrain it in Julia (preferably using Flux). Is there a standard way of importing a tflite file in Julia?

---

## [Problem using ForwardDiff with backslash "\\" matrix solver](https://discourse.julialang.org/t/problem-using-forwarddiff-with-backslash-matrix-solver/74498)

<div class="topic-metadata">

**Author:** [@gaodifan](https://discourse.julialang.org/u/gaodifan)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 3:02pm UTC](https://discourse.julialang.org/t/problem-using-forwarddiff-with-backslash-matrix-solver/74498 "2022-01-13T15:02:09Z")

</div>

Hello, I’m trying to use the ForwardDiff.jl package for automatic differentiation of my function, which includes using the backslash \\ operator for a matrix solve. ForwardDiff requires Arrays to be of the more general ty…

---

## [Cutom scatter tooltip with Makie's DataInspector](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 2:48pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548 "2022-01-13T14:48:03Z")

</div>

Hi all, Does anyone have an example on how to implement a simple custom tooltip for a scatterplot in Makie? After reading the DataInspector documentation I was unsure if I need to implement my own plot type or whether I…

---

## [So now I convert my OSGB36 data to LLA ... oh ... that looks ... hard](https://discourse.julialang.org/t/so-now-i-convert-my-osgb36-data-to-lla-oh-that-looks-hard/74400)

<div class="topic-metadata">

**Author:** [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Replies:** 10\
**Last updated:** [January 13, 2022, 2:15pm UTC](https://discourse.julialang.org/t/so-now-i-convert-my-osgb36-data-to-lla-oh-that-looks-hard/74400 "2022-01-13T14:15:23Z")

</div>

Hi, The UK’s Office of National Statistics publishes data which uses OSGB36 East / North coordinates. Of which I have 39 million addresses from the ONSUD database e.g. East/North “426642,380231” Using an online con…

---

## [Plotting graph using edge list](https://discourse.julialang.org/t/plotting-graph-using-edge-list/74541)

<div class="topic-metadata">

**Author:** [@Jeffrey](https://discourse.julialang.org/u/Jeffrey)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 11:57am UTC](https://discourse.julialang.org/t/plotting-graph-using-edge-list/74541 "2022-01-13T11:57:09Z")

</div>

Hi all. I want to plot a SimpleDiGraph using an edge list and label the edges according to their position in my edge list. For example, if I run the following code using Graphs, GraphPlot edge\_list = Edge.(\[ (1, 3), (3…

---

## [What nonlinear solvers are available?](https://discourse.julialang.org/t/what-nonlinear-solvers-are-available/69801)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 10\
**Last updated:** [January 11, 2022, 5:37am UTC](https://discourse.julialang.org/t/what-nonlinear-solvers-are-available/69801 "2022-01-11T05:37:56Z")

</div>

I am trying to test nonlinear systems solvers, preferably with lots of available algorithms (analogous to the packages Optim.jl and NLopt.jl for optimization). I know of NLsolve.jl, IntervalRootFinding.jl, and NonlinearS…

---

## [Stochastic Differential Equation with positive-only noise?](https://discourse.julialang.org/t/stochastic-differential-equation-with-positive-only-noise/74517)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 1:45am UTC](https://discourse.julialang.org/t/stochastic-differential-equation-with-positive-only-noise/74517 "2022-01-13T01:45:26Z")

</div>

This may be more of a math question, but are there methods available for solving stochastic differential equations with positive only noise? I’ve been tinkering around with an interesting scalar system that includes the …

---

## [Fixing bugs in the LTS version 1.6.5](https://discourse.julialang.org/t/fixing-bugs-in-the-lts-version-1-6-5/74482)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 4:02pm UTC](https://discourse.julialang.org/t/fixing-bugs-in-the-lts-version-1-6-5/74482 "2022-01-12T16:02:41Z")

</div>

I wonder how realistic is for package developers to assume that bugs reported for the LTS version 1.6.5, which are already fixed in 1.7.1, will be also fixed for the LTS version. Personally, I am facing the dilemma that…

---

## [PolyJuMP: constraints on an arbitrarily large multinomial](https://discourse.julialang.org/t/polyjump-constraints-on-an-arbitrarily-large-multinomial/74479)

<div class="topic-metadata">

**Author:** [@jnlindsay](https://discourse.julialang.org/u/jnlindsay)\
**Replies:** 0\
**Last updated:** [January 12, 2022, 11:49am UTC](https://discourse.julialang.org/t/polyjump-constraints-on-an-arbitrarily-large-multinomial/74479 "2022-01-12T11:49:04Z")

</div>

Hi everyone! In using DynamicPolynomials, SumOfSquares, and CSDP, I have set up my objective function and constraints like so: m = 2 @polyvar x\[1:m\] p = x\[1\]^2 + x\[2\]^2 S = @set x\[1\] \>= 0 && x\[1\] \<= 1 && …

---

## [How to access device memory from the host whilst a kernel is running](https://discourse.julialang.org/t/how-to-access-device-memory-from-the-host-whilst-a-kernel-is-running/74472)

<div class="topic-metadata">

**Author:** [@johntrinder](https://discourse.julialang.org/u/johntrinder)\
**Replies:** 5\
**Last updated:** [January 12, 2022, 8:40am UTC](https://discourse.julialang.org/t/how-to-access-device-memory-from-the-host-whilst-a-kernel-is-running/74472 "2022-01-12T08:40:10Z")

</div>

I have allocated memory on the device and have passed it to a kernel function. Is it possible to read that memory from the host before the kernel finishes its execution? If it is possible could you please put me on the …

---

## [Scatterplot readability](https://discourse.julialang.org/t/scatterplot-readability/73810)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 12\
**Last updated:** [January 12, 2022, 8:06am UTC](https://discourse.julialang.org/t/scatterplot-readability/73810 "2022-01-12T08:06:21Z")

</div>

Hey, I have trouble finding an automatic way to make a scatterplot readable, while the number of points is variable. See the following code : using Distributions, StatsBase, Plots data = rand(LogNormal(0,1), (2,1\_000\_0…

---

## [\[Ipopt+HSL\] Error: no BLAS/LAPACK library loaded!](https://discourse.julialang.org/t/ipopt-hsl-error-no-blas-lapack-library-loaded/74409)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 8\
**Last updated:** [January 12, 2022, 3:19am UTC](https://discourse.julialang.org/t/ipopt-hsl-error-no-blas-lapack-library-loaded/74409 "2022-01-12T03:19:19Z")

</div>

Happy New Year! I’m having an error with Ipopt and HSL library. With a toy example: using JuMP, Ipopt m = Model(Ipopt.Optimizer) set\_optimizer\_attribute(m, "linear\_solver", "ma86") @variable(m, x \<= 5) @variable(m, y \<…

---

## [Scatter! not working as before after upgrade to julia 1.7.1 and GLMakie 0.5.0](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 7:20pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410 "2022-01-11T19:20:33Z")

</div>

The following code with julia 1.7.1 and GLMakie 0.5.0 using StaticArrays using GLMakie const T = Float32 N = 1000 low, hi = Point3{T}(-1,-1,-1), Point3{T}(1,1,1) dim = hi - low points = Ref(low) .+ rand(Point3{T}, N)…

---

## [Plots.jl : Obtain a graph with alligned ticks on x and y axes](https://discourse.julialang.org/t/plots-jl-obtain-a-graph-with-alligned-ticks-on-x-and-y-axes/74388)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 9\
**Last updated:** [January 11, 2022, 1:45pm UTC](https://discourse.julialang.org/t/plots-jl-obtain-a-graph-with-alligned-ticks-on-x-and-y-axes/74388 "2022-01-11T13:45:20Z")

</div>

Hey, Is there a way to force a plot to have the same ticks values on the x and the y axes ? So that the ‘grid’ is symmetric. It will make the reading of my qqplots easier.

---

## [(3D plotting in Makie) Which Julia package does contain "to\_vertices"?](https://discourse.julialang.org/t/3d-plotting-in-makie-which-julia-package-does-contain-to-vertices/74320)

<div class="topic-metadata">

**Author:** [@cyfung](https://discourse.julialang.org/u/cyfung)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 10:26am UTC](https://discourse.julialang.org/t/3d-plotting-in-makie-which-julia-package-does-contain-to-vertices/74320 "2022-01-11T10:26:34Z")

</div>

I would like to learn the 3D plot functionalities in Makie. I am trying to an example on the official website of Makie; I have run the code with “using Meshes” as well: https://makie.juliaplots.org/stable/examples/plot…

---

## [Visualising loss/objective function value with iterations using \`Convex\` + \`SCS\`](https://discourse.julialang.org/t/visualising-loss-objective-function-value-with-iterations-using-convex-scs/74374)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 8:00am UTC](https://discourse.julialang.org/t/visualising-loss-objective-function-value-with-iterations-using-convex-scs/74374 "2022-01-11T08:00:46Z")

</div>

Anyone worked with Convex.jl + SCS.jl ? How do I plot loss values/objective function values vs iteration during training process? (Naive way, that comes to my mind is allowing verbose=true in the solver and copypasting…

---

## [LSTM - Scaling training data MinMaxScaler Flux alternative](https://discourse.julialang.org/t/lstm-scaling-training-data-minmaxscaler-flux-alternative/74323)

<div class="topic-metadata">

**Author:** [@Jan\_Svanda](https://discourse.julialang.org/u/Jan_Svanda)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 3:28am UTC](https://discourse.julialang.org/t/lstm-scaling-training-data-minmaxscaler-flux-alternative/74323 "2022-01-11T03:28:37Z")

</div>

I try to build a model of a dynamic system very similar to Using PyTorch based LSTM to model nonlinear dynamic systems using Flux in Julia. I need to scale the train/test date to (-1,1) but I didn’t find a scaling functi…

---

## [Help needed with Zygote Flux and custom adjoints on GPU](https://discourse.julialang.org/t/help-needed-with-zygote-flux-and-custom-adjoints-on-gpu/74326)

<div class="topic-metadata">

**Author:** [@TsurHerman](https://discourse.julialang.org/u/TsurHerman)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 3:27am UTC](https://discourse.julialang.org/t/help-needed-with-zygote-flux-and-custom-adjoints-on-gpu/74326 "2022-01-11T03:27:30Z")

</div>

I am incorporating some simple non-standard elements in a larger DNN. To achieve this I had to manually define some reverse rules through ChainRulesCore syntax ChainRulesCore.rrule(::typeof(f),args...) Which works gre…

---

## [Change xticks in Makie.jl recipe](https://discourse.julialang.org/t/change-xticks-in-makie-jl-recipe/68810)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 7:54pm UTC](https://discourse.julialang.org/t/change-xticks-in-makie-jl-recipe/68810 "2022-01-10T19:54:09Z")

</div>

How can I set the xticks in this recipe? import Dates import TimeSeries using CairoMakie using PlotUtils: optimize\_datetime\_ticks dates = Dates.DateTime(2018, 1, 1):Dates.Day(1):Dates.DateTime(2018, 12, 31) data = Time…

---

## [Oscillating loss curves using sciml\_train](https://discourse.julialang.org/t/oscillating-loss-curves-using-sciml-train/74225)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 7:10pm UTC](https://discourse.julialang.org/t/oscillating-loss-curves-using-sciml-train/74225 "2022-01-10T19:10:01Z")

</div>

I’ve been trying to adapt one of the examples from Chris Rackauckas’s UDE paper, with the code here to a slightly more complicated form of equations and am running into difficulties with oscillatory loss curves. In his e…

---

## [Notification of breaking changes in Makie?](https://discourse.julialang.org/t/notification-of-breaking-changes-in-makie/74281)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 5\
**Last updated:** [January 10, 2022, 6:37pm UTC](https://discourse.julialang.org/t/notification-of-breaking-changes-in-makie/74281 "2022-01-10T18:37:09Z")

</div>

Is there an easy way of getting notice of breaking changes in Makie? I do a regular \]update and today GLMakie was updated to 0.5.0 and my code no longer worked. It turned out to be straightforward to fix (replace Node wi…

---

## [Wrong answer with NonLinear Optimization in JuMP](https://discourse.julialang.org/t/wrong-answer-with-nonlinear-optimization-in-jump/74304)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 13\
**Last updated:** [January 10, 2022, 6:19pm UTC](https://discourse.julialang.org/t/wrong-answer-with-nonlinear-optimization-in-jump/74304 "2022-01-10T18:19:05Z")

</div>

Hi, I am trying to maximize a very simple function in JuMP which I can solve analytically. I am getting an optimal solution which is different from what I should get. I was hoping someone could point me to my error. Her…

---

## [Julia: How to set and use CUDA/Host Global memory](https://discourse.julialang.org/t/julia-how-to-set-and-use-cuda-host-global-memory/74247)

<div class="topic-metadata">

**Author:** [@johntrinder](https://discourse.julialang.org/u/johntrinder)\
**Replies:** 3\
**Last updated:** [January 10, 2022, 5:42pm UTC](https://discourse.julialang.org/t/julia-how-to-set-and-use-cuda-host-global-memory/74247 "2022-01-10T17:42:35Z")

</div>

I want to poll a global flag inside of a kernel in CUDA so as to shut down the kernel gracefully via the Host. How do I set up a Global flag in the host (I have tried abort=CuArray(\[false\]) ) Do I pass ‘abort’ as an ar…

---

## [How to specify nonhomogeneous system with ModelingToolkit](https://discourse.julialang.org/t/how-to-specify-nonhomogeneous-system-with-modelingtoolkit/74341)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 3:43pm UTC](https://discourse.julialang.org/t/how-to-specify-nonhomogeneous-system-with-modelingtoolkit/74341 "2022-01-10T15:43:44Z")

</div>

DifferentialEquations.jl can deal with nonhomogeneous systems specified as an ODEProblem, where some parameter also depends on time. How do I specify the example as an ODESystem using ModelingToolkit? So far I tried: u…

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

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