Actually, if the data is shaped as $ m times n times 2 $, functions like `ListLinePlot`

just do the job. But now I want to add colors to the curves according to each 3rd data. But it has stuck me. Any ideas?

# Tag: visualization

## visualization – How to control the visible area (up and down the line) in NumberLinePlot?

How can you control the up and down line visible part of the graph?

The target if view arrosw and text below the line (purple arrow) and if it´s posible make great the upper area

```
muestra = {600, 800, 950}
muestraMean = Mean(muestra)
muestraMedian = Median(muestra)
NumberLinePlot({600, 800, 950}
, Spacings -> {0.08}, PlotStyle -> Directive(PointSize(0.016)),
LabelStyle -> {16, Bold}, ImageSize -> Full, PlotTheme -> {{}}
,
Epilog -> {
Red,
Thickness(0.006), Arrow({{muestraMean, 0.84}, {muestraMean, 0.24}}),
Text(Style("Mean", 20, Bold), {muestraMean, 1.2}),
Lighter(Blue),
Thickness(0.006),
Arrow({{muestraMedian, -0.64}, {muestraMedian, -0.12}}),
Text(Style("Median", 24, Bold), {muestraMean, -0.74})}
```

## unity – Change item rotation axis in inventory item visualization

I’m learning unity and i’m trying now make an inventory, i made a simple interface, and now i’m trying to make a item visualization. I look for some codes from web and i found this one:

```
using UnityEngine;
public class TurnObject : MonoBehaviour
{
protected Vector3 posLastFame;
public Camera UICam;
// Update is called once per frame
void Update()
{
if(Input.GetMouseButtonDown(0)) {
posLastFame = Input.mousePosition;
}
if (Input.GetMouseButton(0)) {
var delta = Input.mousePosition - posLastFame;
posLastFame = Input.mousePosition;
var axis = Quaternion.AngleAxis(-90f, Vector3.forward) * delta;
transform.rotation = Quaternion.AngleAxis(delta.magnitude * 0.1f, axis) * transform.rotation;
}
}
}
```

I know some code, but I’m not good with geometrics. In this code when I move my mouse horizontal way, my object turn in the Y axis. And that’s good. But when I move my mouse vertical the object move in the X axis instead of Z axis.

Is there a way in this code for change this? I really have difficulty to understanding geometrics in Unity.

## info visualisation – Overtime + 2 other aspects data visualization

## It depends on the tradeoffs (and the story you need to convey): You can break the charts into adjacent, separate displays, or change the chart to emphasize relative change over time.

### Break into separate displays:

This tradeoff means you have precision about each figure, but need to parse 2 data points. You can try to amend this with interaction with either chart:

**Try making it like a sentence:**

In this case, since the y-axis’ are separate, hovering on one chart gives you interactivity in the next. I’ve seen this done vertically as well.

It might be harder to parse the trendline, but the tradeoff is accuracy. Bubble charts can be difficult, as area is hard to parse.

### Another solution: if change over time (not volume) is important, change the y-axis to reflect that:

**What about dual y-axis charts?**

There used to be more of an emphasis on dual y-axis visualization, but they’ve fallen out of favor due to perception problems:

Why not to use two axes, and what to use instead

The proportions of the two scales are often different from each other in dual axis charts. If the left axis would go down to zero, the chart would be twice as long. If the right axis would go down to zero, the chart would be almost three times as long.

## algebraic geometry – Geometric visualization of tangent bundles/sheaves and normal cones/bundles

In algebraic geometry it is customary to identify locally free sheaves on say a scheme $X$ and vector bundles over the same scheme.

So say I have a nice scheme $X$ (you can assume it to be a variety, over an algebraically closed field $k$), and an exact sequence of locally free sheaves $0to V’to V to V”to 0$, this exact sequence is exact on the level of stalks, almost by definition, if $x$ is a (closed) point of $X$, $0to j^*V’to j^*V to j^*V”to 0$ is also exact because $V”$ is locally free, hence flat (here $j$ is the closed immersion $xto X$).

My question comes to how to practically apply this in the case of normal cones to regular immersion.

Let’s look at a simple example, $Z={xy=0}$ regularly embedded in $X=mathbb{A}^2$.

Concerning $Z$ we have the cotangent sheaf. It is not locally free but the normal cone of $Z$ is locally free.

At the origin, we have a geometric tangent cone given by the union the two axis lines. How is this related to the fiber of the tangent sheaf at 0, or to the fiber of the (co)normal cone at 0?

We have an exact sequence $0to N_{Z/X}^{*}to j^* Omega^1_X to Omega^1_Zto 0$.

Away form the origin, it is easy to understand what’s going on, at a point of the form say $(a,0)$ the stalk of the cotangent sheaf is given by $f(x)dx$, the fiber is simply $f(a)dx$, the conormal sheaf has fiber $k.dy$ (where k is the base field or the residue field of the point).

At the origin it becomes blurry to me, the normal bundle should have a line as a fiber, but which line?

The stalk of the tangent sheaf at the point consists of forms of the form $f(x)dx+g(y)dy$ and the fiber is a vector space of dimension 2. Which is also the case for the fiber of $j^{*}Omega^1_X$, but as the sheafs are not (locally) free I cannot deduce that the fiber of the normal bundle is zero, which is good as it should be a line.

Most importantly, how does this relate to the tangent cone, which is $xy=0$.

What is the normal cone? In particular how do i deduce the normal cone from the tangent cone (and not the (co)tangent sheaf and the exact sequence). I was hoping that the normal cone should be related (orthgonal) to something like the vector space generated by the tangent cone, but obviously this is not the case.

I hope my question is somewhat clear, I can clarify it if needed.

## Info visualization – How is data with variations displayed for non-demanding users?

In my application, the students are divided into classes and each student has a performance metric. I want to be able to show teachers and school leaders a list of classes and an aggregate performance metric for each class.

I don't want to show the mean because a student with very high or low performance distorts it. I do not want to display the median because it basically completely discards the students with very high or low performance and I want to record the contribution of these students.

It would be more correct to show a visualization of the mean with standard deviation. I might have been able to show a small bell curve to convey this. But even then, I think this would be too complex for many of my users, and it's not a single number that could be used, for example, to sort the list by "performance".

Is there a better technique for calculating total performance in a single number that somehow captures the variance of the data set?

## Info visualization – what kind of graphics is it?

What is this type of graphic called? I find this graphic on some websites, but I don't remember.

The functions of this diagram are listed below:

- Nodes are connected to the central node, which displays levels of information
- Clicking a node gives you information about that node.

Can anyone provide some use cases and references for this diagram?

## Info visualization – what is this type of graphic called?

What is this type of graphic called? I find this graphic on some websites, but I don't remember.

The functions of this diagram are listed below:

- Nodes are connected to the central node, which displays levels of information
- Clicking a node gives you information about that node.

Can anyone provide some use cases and references for this diagram?

## Info visualization – Y-label in plots without head tilt

When drawing data with an x and y axis and labeling the axes, it is common for the labels to be parallel to the axes. A typical example from here:

That makes the y-label barely legible without tilting your head, doesn't it? If the label is a little longer, turning it horizontally would waste too much space.

What are alternatives?

## Architecture – Scraper in separate repo from visualization component?

Let me explain my thoughts on the architecture of the project I'm working on.

The project code repository consists of:

**Scrapy**Component – of course, it's used to scratch, process, and calculate relationships between data. It fills the MySQL database.**Django**Visualization component – simply displays data that is stored in the database with many filters.

At the moment they are provided as two separate Docker containers, which works perfectly.

The idea of former colleagues was to continue code repositories with Split and Split.

I see the potential possibility of creating CI / CD per repository so that only tests / lintes / checks are carried out and ultimately only containers are provided that have actually been changed. Not everything that is okay is done for other containers (logical separation).

But because they actually work on the same database tables (scrapy fills them in, Django reads them), it looks like an overkill to me. I would have to keep two separate DB model specifications in sync in both repositories. Scrapy currently uses Django ORM to interact with DB.

What do you think? Do you think it's worth dividing the code repository into two separate models and staying in sync in both models? Or maybe not? Is there a way to trigger / execute the Gitlab CI / CD process only for the affected container in a single repository?

Thanks a lot