# Specific Domains

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

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

**Page:** 273

---

## [Plotting a weighted tree graph](https://discourse.julialang.org/t/plotting-a-weighted-tree-graph/82637)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 14\
**Last updated:** [June 16, 2022, 5:31am UTC](https://discourse.julialang.org/t/plotting-a-weighted-tree-graph/82637 "2022-06-16T05:31:14Z")

</div>

I am trying to plot a weighted graph using SimpleWeightedGraphs using GraphPlot. g = SimpleWeightedGraph(5) add\_edge!(g, 1, 2, 0.5) add\_edge!(g, 1, 3, 2.0) add\_edge!(g, 1, 4, 3.5) add\_edge!(g, 1, 5, 5.0) gplot(g) Bu…

---

## [Inserting margins above plot title](https://discourse.julialang.org/t/inserting-margins-above-plot-title/82801)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 3:54am UTC](https://discourse.julialang.org/t/inserting-margins-above-plot-title/82801 "2022-06-16T03:54:19Z")

</div>

Hi all! I’m trying to insert margin above the plot title but am unsure how. Any help would be great! For context, I have been using Plots.jl and Measures.jl to insert margins but top\_margin only inserted space between t…

---

## [Solar radiation hitting different parts of earth's surface at specific time](https://discourse.julialang.org/t/solar-radiation-hitting-different-parts-of-earths-surface-at-specific-time/82565)

<div class="topic-metadata">

**Author:** [@water](https://discourse.julialang.org/u/water)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 11:14pm UTC](https://discourse.julialang.org/t/solar-radiation-hitting-different-parts-of-earths-surface-at-specific-time/82565 "2022-06-15T23:14:36Z")

</div>

Hi, I want to calculate how much solar radiation is hitting different parts of earth’s surface at a specific time. I imagine a function that takes a datetime and returns a 361x181 matrix (where the array indices can be…

---

## [Display ArchGDAL geotiff raster wants unsigned type?](https://discourse.julialang.org/t/display-archgdal-geotiff-raster-wants-unsigned-type/82813)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 8:02pm UTC](https://discourse.julialang.org/t/display-archgdal-geotiff-raster-wants-unsigned-type/82813 "2022-06-15T20:02:06Z")

</div>

I wanted to look at this raster with ArchGDAL: using ArchGDAL (loaded raster from disk) julia\> e GDAL Dataset (Driver: GTiff/GeoTIFF) File(s): /Users/florian.oswald/Downloads/population\_fra\_2019-07-01\_geotiff/popula…

---

## [NCDatasets.jl: define values of dimensions](https://discourse.julialang.org/t/ncdatasets-jl-define-values-of-dimensions/65892)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 9:48am UTC](https://discourse.julialang.org/t/ncdatasets-jl-define-values-of-dimensions/65892 "2022-06-15T09:48:03Z")

</div>

Dear all, Using NCDatasets, To write a data to netcdf, i can define the dimensions with this way: ds = NCDataset("/tmp/test.nc","c") defDim(ds,"lon",100) However, is there any way to define the values of my dimension…

---

## [Unable to set parameter for GAMS package](https://discourse.julialang.org/t/unable-to-set-parameter-for-gams-package/82780)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 6:59am UTC](https://discourse.julialang.org/t/unable-to-set-parameter-for-gams-package/82780 "2022-06-15T06:59:02Z")

</div>

I am having a problem regarding choosing parameters for the solvers KNITRO or CONOPT through the GAMS package. Here is my model. And here are the solvers options for KNITRO and CONOPT. using GAMS, JuMP model = Model(GAM…

---

## [ODE solver algorithms that exploit massive parallelism (eg GPU)?](https://discourse.julialang.org/t/ode-solver-algorithms-that-exploit-massive-parallelism-eg-gpu/82726)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 6:00am UTC](https://discourse.julialang.org/t/ode-solver-algorithms-that-exploit-massive-parallelism-eg-gpu/82726 "2022-06-15T06:00:03Z")

</div>

My scenario is that I’m solving some stiff ODE of O(100) variables with an ensemble of O(200) parameters. KenCarp4 or Rodas5 work the best that we’ve found. The problem is mildly sparse, but not super disconnected, and o…

---

## [Re-using layers in Flux.jl: how to train a multi-layer model sharing a common LSTM layer and separate dense layers?](https://discourse.julialang.org/t/re-using-layers-in-flux-jl-how-to-train-a-multi-layer-model-sharing-a-common-lstm-layer-and-separate-dense-layers/82705)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 2:16am UTC](https://discourse.julialang.org/t/re-using-layers-in-flux-jl-how-to-train-a-multi-layer-model-sharing-a-common-lstm-layer-and-separate-dense-layers/82705 "2022-06-15T02:16:19Z")

</div>

I would like to train a model that consists of two “submodels”, say model1 and model2. The two models share a common LSTM layer and are followed by two separate dense layers. The final output is the average of the two mo…

---

## [Is it optimal this way of doing a panel of plots with PlotlyJS.jl?](https://discourse.julialang.org/t/is-it-optimal-this-way-of-doing-a-panel-of-plots-with-plotlyjs-jl/82051)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 11:39pm UTC](https://discourse.julialang.org/t/is-it-optimal-this-way-of-doing-a-panel-of-plots-with-plotlyjs-jl/82051 "2022-06-14T23:39:02Z")

</div>

I am new in Julia and coming from R. In R I somehow master plotting with {ggplot2} and I am very used to work with tidy data frames. Now that I am starting the PhD thesis I am considering moving to Julia. I must say I …

---

## [Makie contourf behaviour depends on levels type](https://discourse.julialang.org/t/makie-contourf-behaviour-depends-on-levels-type/82769)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 7:10pm UTC](https://discourse.julialang.org/t/makie-contourf-behaviour-depends-on-levels-type/82769 "2022-06-14T19:10:02Z")

</div>

Hi, The look of Makie contourf changes when I pass an Int level (levels=10) or a range (levels= levels = -0.75:0.25:0.5) as one can see on the documentation. https://makie.juliaplots.org/stable/examples/plotting\_funct…

---

## [Annotate Points in Plot](https://discourse.julialang.org/t/annotate-points-in-plot/82764)

<div class="topic-metadata">

**Author:** [@gjh](https://discourse.julialang.org/u/gjh)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 5:56pm UTC](https://discourse.julialang.org/t/annotate-points-in-plot/82764 "2022-06-14T17:56:45Z")

</div>

Is there a way to annotate each point with its id number? I know it seems odd, but that is what we are hoping to display. Thank you using DataFrames, Gadfly df = DataFrame((id = 1:20), value\_x=rand(20)\*100, value\_y = r…

---

## [Non-affine transformations in Makie](https://discourse.julialang.org/t/non-affine-transformations-in-makie/81951)

<div class="topic-metadata">

**Author:** [@adigitoleo](https://discourse.julialang.org/u/adigitoleo)\
**Replies:** 8\
**Last updated:** [June 14, 2022, 1:10pm UTC](https://discourse.julialang.org/t/non-affine-transformations-in-makie/81951 "2022-06-14T13:10:25Z")

</div>

I would like to help with adding non-affine transformations to Makie. However, I haven’t used Makie very much yet and also I am aware that this is a fairly ambitious thing to do. I’m also not a graphics expert, just some…

---

## [PlotlyJS: customizing subplot figure titles from facet categories](https://discourse.julialang.org/t/plotlyjs-customizing-subplot-figure-titles-from-facet-categories/82713)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 10\
**Last updated:** [June 14, 2022, 11:53am UTC](https://discourse.julialang.org/t/plotlyjs-customizing-subplot-figure-titles-from-facet-categories/82713 "2022-06-14T11:53:55Z")

</div>

Hi everyone, I am trying to adapt a piece of code from Plotly into PlotlyJS. This code allows editing the titles of individual subplots produced with facet\_row and facet\_col by changing the default format. I have tried …

---

## [SDDP: type Array has no field out](https://discourse.julialang.org/t/sddp-type-array-has-no-field-out/82731)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 9:22am UTC](https://discourse.julialang.org/t/sddp-type-array-has-no-field-out/82731 "2022-06-14T09:22:58Z")

</div>

Hello, I’m using SDDP to solve my problem. Now I want to print the result of stage variable level, which is an array with 4 components. For loop structure is used to show the result: model = SDDP.LinearPolicyGraph( …

---

## [Errors in inference in upgraded Julia version (1.6.3 vs. 1.7.3)](https://discourse.julialang.org/t/errors-in-inference-in-upgraded-julia-version-1-6-3-vs-1-7-3/82668)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 6\
**Last updated:** [June 14, 2022, 8:03am UTC](https://discourse.julialang.org/t/errors-in-inference-in-upgraded-julia-version-1-6-3-vs-1-7-3/82668 "2022-06-14T08:03:12Z")

</div>

Hello, I’ve been running a parallelized (4 chains) Bayesian inference code using the NUTS sampler on Julia v1.6.3 (Cent OS - HPC cluster) and was getting results as expected and without any warning during inference. I’v…

---

## [Why are only ContinuousCallbacks exposed in ODESystem?](https://discourse.julialang.org/t/why-are-only-continuouscallbacks-exposed-in-odesystem/82623)

<div class="topic-metadata">

**Author:** [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Replies:** 11\
**Last updated:** [June 13, 2022, 4:49pm UTC](https://discourse.julialang.org/t/why-are-only-continuouscallbacks-exposed-in-odesystem/82623 "2022-06-13T16:49:12Z")

</div>

DifferentialEquations support both discrete and continuous callbacks - but it seems only the latter kind is available when using ModelingToolkit: function ODESystem(deqs::AbstractVector{\<:Equation}, iv, dvs, ps; …

---

## [Discrete colorbar with PlotlyJS](https://discourse.julialang.org/t/discrete-colorbar-with-plotlyjs/80773)

<div class="topic-metadata">

**Author:** [@Line](https://discourse.julialang.org/u/Line)\
**Replies:** 4\
**Last updated:** [June 13, 2022, 4:29pm UTC](https://discourse.julialang.org/t/discrete-colorbar-with-plotlyjs/80773 "2022-06-13T16:29:10Z")

</div>

Hi, wonder if there is any good way to make a discrete colour bar when making a heatmap plot with PlotlyJS? It would also be nice to be able to label these.

---

## [Way to write the integral with ModelingToolkit](https://discourse.julialang.org/t/way-to-write-the-integral-with-modelingtoolkit/82347)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 7\
**Last updated:** [June 13, 2022, 3:22pm UTC](https://discourse.julialang.org/t/way-to-write-the-integral-with-modelingtoolkit/82347 "2022-06-13T15:22:45Z")

</div>

Is there a way to write the following integral with ModelingToolkit.jl, is binomial expansion the only option here? \\int\_{0}^{t} (t - x)^{\\lambda} u(x) d x \\quad \\text{, } \\lambda \< 0 \\quad \\text{, for } t\> 0 I want t…

---

## [Simple linear regression with ReactiveMP - RuleMethodError?](https://discourse.julialang.org/t/simple-linear-regression-with-reactivemp-rulemethoderror/81526)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 2:12pm UTC](https://discourse.julialang.org/t/simple-linear-regression-with-reactivemp-rulemethoderror/81526 "2022-06-13T14:12:18Z")

</div>

I’ve tried to implement a simple linear regression with Normal obs. model, so effectively a combination of examples: Linear Regression and Univariate Normal Mixture When I define both RVs for location and scale of the o…

---

## [Finding all binding constraints using JuMP](https://discourse.julialang.org/t/finding-all-binding-constraints-using-jump/82579)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 3\
**Last updated:** [June 13, 2022, 1:25pm UTC](https://discourse.julialang.org/t/finding-all-binding-constraints-using-jump/82579 "2022-06-13T13:25:35Z")

</div>

Is this the correct way to find all the binding constraints in JuMP? I figure it is only binding of it has a nonzero shadow-price. However shadow\_price only works for \<, \> and == constraints so I am not sure i am going…

---

## [What is the difference between ReinforcementLearning.jl and pomdps.jl](https://discourse.julialang.org/t/what-is-the-difference-between-reinforcementlearning-jl-and-pomdps-jl/82640)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 12:31pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-reinforcementlearning-jl-and-pomdps-jl/82640 "2022-06-13T12:31:38Z")

</div>

Hello, I have been reading about both packages and also found this link, but I don\`t see the difference between them. Do you?

---

## [JuMP non-rectangular variable container: more efficient representation?](https://discourse.julialang.org/t/jump-non-rectangular-variable-container-more-efficient-representation/82669)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 1\
**Last updated:** [June 13, 2022, 11:13am UTC](https://discourse.julialang.org/t/jump-non-rectangular-variable-container-more-efficient-representation/82669 "2022-06-13T11:13:18Z")

</div>

Let’s consider a minimal case. I have three kinds of variables: x of length 50, y of length 80, z of length 100. The length actually represents the number of time steps. I know that after time 50, x is always zero, and y…

---

## [GLMM ERROR: UndefVarError: emηᵢ not defined](https://discourse.julialang.org/t/glmm-error-undefvarerror-em-not-defined/82672)

<div class="topic-metadata">

**Author:** [@Shuya\_Fan](https://discourse.julialang.org/u/Shuya_Fan)\
**Replies:** 0\
**Last updated:** [June 13, 2022, 10:17am UTC](https://discourse.julialang.org/t/glmm-error-undefvarerror-em-not-defined/82672 "2022-06-13T10:17:18Z")

</div>

Hi, I’m new to Julia and it’s an awesome language. But I got some errors while running the GLMM. Looking forward to your help. In my data, ‘species’ and ‘newOBJIDsic’ are the random effect, ‘bio\_pd\_mpd\_mean’ is the fix…

---

## [Does not plot if change array](https://discourse.julialang.org/t/does-not-plot-if-change-array/82650)

<div class="topic-metadata">

**Author:** [@leonandonayre](https://discourse.julialang.org/u/leonandonayre)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 7:31am UTC](https://discourse.julialang.org/t/does-not-plot-if-change-array/82650 "2022-06-13T07:31:03Z")

</div>

This program is very simple, but I do not understand why it works when I use ξ\_ar = 0.00001:0.01:10 but it does not when ξ\_ar = 0.00001:0.000001:10 . using ModelingToolkit; using LaTeXStrings; using Plots; @variables…

---

## [Should we add sm as a short form of skipmissing](https://discourse.julialang.org/t/should-we-add-sm-as-a-short-form-of-skipmissing/82610)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 18\
**Last updated:** [June 13, 2022, 7:02am UTC](https://discourse.julialang.org/t/should-we-add-sm-as-a-short-form-of-skipmissing/82610 "2022-06-13T07:02:12Z")

</div>

Do you think const sm = skipmissing should be added and exported from Missings.jl? The point is that then mean(skipmissing(x)) would be abbreviated to mean(sm(x)). Given skipmissing is often needed I would propose to co…

---

## [Quick way to make axis invisible (Makiei)?](https://discourse.julialang.org/t/quick-way-to-make-axis-invisible-makiei/82478)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 2\
**Last updated:** [June 12, 2022, 7:34am UTC](https://discourse.julialang.org/t/quick-way-to-make-axis-invisible-makiei/82478 "2022-06-12T07:34:31Z")

</div>

Hi! I’m preparing some quite complex figures for a presentation and I would like to produce multiple versions of that figure with different parts of the layout shown/hidden. Is there any simple way to make an axis invis…

---

## [Modelling of SOCP constraint and solving through CPLEX](https://discourse.julialang.org/t/modelling-of-socp-constraint-and-solving-through-cplex/82580)

<div class="topic-metadata">

**Author:** [@musman](https://discourse.julialang.org/u/musman)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 7:01am UTC](https://discourse.julialang.org/t/modelling-of-socp-constraint-and-solving-through-cplex/82580 "2022-06-12T07:01:40Z")

</div>

Hello all, I am trying to implement and solve the following SOCP constraint through CPLEX solver (cij)^2 + (sij)^2 \<= cii\*cjj through Rotated Second Order cone as follows: nSc = 10 nTP = 24 nBus = 34 nLines = 33 @vari…

---

## [Is this how to load dash datatable from a Dict?](https://discourse.julialang.org/t/is-this-how-to-load-dash-datatable-from-a-dict/82462)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 8:59pm UTC](https://discourse.julialang.org/t/is-this-how-to-load-dash-datatable-from-a-dict/82462 "2022-06-08T20:59:21Z")

</div>

Hi all I’m going to be looking at using Dash to represent a Dict I build from a stream of realtime data. Here’s an example. data\_flow = Dict{String, Any}("AMZN" =\> Dict{String, Any}("hv10" =\> "45.99", "price" =\> "122…

---

## [Using optimization parameters in ModelingToolkit](https://discourse.julialang.org/t/using-optimization-parameters-in-modelingtoolkit/82099)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 12\
**Last updated:** [June 11, 2022, 12:00pm UTC](https://discourse.julialang.org/t/using-optimization-parameters-in-modelingtoolkit/82099 "2022-06-11T12:00:02Z")

</div>

Hi All, I want to be able to pass optimization parameters to the model. I took the RC circuit from the docs and created 2 parameters (param\_r1 param\_c1) https://mtk.sciml.ai/stable/tutorials/acausal\_components/#Connec…

---

## [DiffEqs: Hybrid (continuous+discrete) system / periodic callback](https://discourse.julialang.org/t/diffeqs-hybrid-continuous-discrete-system-periodic-callback/23791)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 43\
**Last updated:** [June 11, 2022, 5:10am UTC](https://discourse.julialang.org/t/diffeqs-hybrid-continuous-discrete-system-periodic-callback/23791 "2022-06-11T05:10:12Z")

</div>

I want to model the combination of a physical (and thus continuous-time) system with a (discrete-time) controller. The controller algorithm is executed, say, every second. The output of the controller (that thus changes …

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

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