want two colors when using mpandroidchart line chart with beizer style - mpandroidchart

I'm drawing a line chart with mpandroidchart and I want my line BELOW zero to be red rather than green. It's seems that beizer is not respecting the line-color settings (green is first color in my array & thats the only one that gets used). Can anyone tell me how to accomplish this?

Related

QGIS | Removing fill color from data-defined size legend

I'd like to customize a data-defined size legend in QGIS separately from the plotted points in my map for increased legibility, setting the legend fill color to transparent and outline color to black.
I assume that this might be possible to do in the "Legend symbol" option in the print layout, but I cannot access it (see picture) and I'm not quite sure why. The only customization available is for the line connecting circle size and value.
A workaround might be to create a new style in a separate layer, but is there a more direct way to do this in QGIS?
The version I'm using is 3.20.3.
Image: Data-defined size legend customization box

Determining Darkest and Lightest Color

I have an image loaded into a picture box, and need some help with a way to detect the Darkest color present in the image, the Lightest color present, and the color which is in the middle.
The point being so that I can refine my heightmap generator based on these 3 colors.
I'm thinking of looping through each X,Y coordinate within the picture box, set the darkest and lightest value, and overwrite those values if a darker/lighter one is found.
The part I'm stuck at is determining what exactly I can use to check how dark or light a spot within the picture box is. RGB?
Any guidance is appreciated.

Psychtoolbox scale slider

I'm trying to make a slider for a simple scale where the user can see mouse movement ONLY in the horizontal axis (fixed y location on the horizontal scale).
In more detail: When the scale appears, I want the cursor to appear as a short vertical line (aka slider) in the center of the horizontal scale.
When the user moves the mouse, the slider should move accordingly on the horizontal axis (without reflecting any changes in the vertical axis, i.e. it should stay on the scale)
I'm stuck on both changing the appearance of the cursor to a vertical line slider and on limiting the cursor's movement to the horizontal axis.
Here's what I've tried:
I can successfully place the cursor with SetMouse.
I tried ShowCursor to change the appearance of the cursor, but this only has a few named options and the numbered ones are not portable across OSs ("mapping of numbers to shapes is operating system dependent"), which I need. Any other ideas on how to change the cursor to a vertical line slider?
As for limiting the movement to horizontal, I couldn't find any PTB functions that seem to do this. I did find some workarounds in Matlab to make user GUIs, but it seems these can't be used with PTB's screen. Any ideas would be great!
I'm a still very new to PTB so thank you so much for your help!
I wrote a function for exactly that called slideScale. If you want to see how it works see the test script.
The crucial thing for you is to create a loop, which runs until a click has been made and record the position of the cursor for instance with the function GetMouse(), which gives you the x- and y-coordinates of the cursor. Then, the only thing you basically need is to update the position of your vertical line using the x-coordinate you recorded with GetMouse() without changing the y-coordinates, for which you can just use a fixed value.

Modify Z-index on Series object in Excel 2010

I am using excel 2010.
I have a chart diagram on which i put a rectangle to surround the highest column bar.
In order to make things more readable, i would like to place this rectangle on the chart but NOT in front of the lines/bars/etc...It has to be behind them.
Shape objects (like my rectangle) have a ZIndex property than can be modified in order to achieve that. Thing is, it seems impossible to put that behind the elements of my chart, nor the chart itself.
The main reason is because Chart objects and Series objects (which are the columns inside my chart) doesn't have a Z-Index property.
Is there a way which could allow me to achieve this ? Other than modifying ZIndex property ?
You can move the Chart in front of the Shape, or the Shape in front of the Chart. But what you are looking to do is to stuff the Shape behind some components of the chart, but still in front of the chart background.
That, as far as I know cannot be done.
But you can simulate the effect by making the Chart's background and the Plot area transparent (no fill, instead of the default White fill) by simply right clicking and adjusting properties.
Also, you can highlight both the chart and the shape (Ctrl-Multiple Select) and lock the two together so your Shape will look like it's a part of the chart and is behind the components.
Of course, the shape will be behind the whole chart itself (by setting the appropriate Z-value, which you may find by simply clicking on Record Macro and running the formatting once to get sample code) but since the chart's background is transparent and so is the plot area's it'll look as if the rectangle's behind the lines and all.

How To Remove Background Wall & Gridlines On 3D Chart Control

I am trying to remove all gridlines and all parts of the background wall from a 3D Column graph. I have tried changing every background colour and every enabled setting to false but I still cannot seem to find where to remove the surrounding gridline as shown below. If possible, I would like to keep the graph floor, but remove the side and back walls.
I'm sure it's simple, so any help would be appreciated.
Thanks
Unfortunately the style of Area3DStyle is a bit hard-coded. You have the possibility to choose one of the following LightStyle:
None
Simplistic
Realistic
From you picture it seems that you have chosen None, try to set LightStyle to Simplistic to remove the border on the bars.
If you want to completely remove also the gray background you can set the ChartArea BackColor to Transparent.
The final result will be similar to