Pine Script now does vertical gradients - colors

is it possible to add this new vertical gradients
to pvrsa candles
https://www.tradingview.com/v/gzA3P3pr/

Related

Using matplotlib.pyplot.clabel to add labels with a transparent background

For matplotlib.pyplot.clabel, is it possible to add labels to a contour plot without the white space behind the labels covering up any portion the contour lines? When I try to add labels to a contour plot it tends to cover up part of the contour plot with white space. Perhaps there is a way of making the background of the text transparent?
Use the inline argument
plt.clabel(..., inline=False)

Gnuplot - transparent surface plot without lines

I am plotting a transparent surface using pseudofile '++' (gnuplot 5.2):
set isosample 100
set style fill transparent solid 0.65
splot [0:5][0:5] '++' u 1:2:(sin($1)*sin($2)) w pm3d
but it results in a plot with both lines around each tile of the surface.
I am not sure how to make these transparent as the tiles, or how to suppress them altogether. Using the noborder or any border option of set style fill does not seem to change the output at all.
EDIT: The problem is actually terminal dependent.
above plot is with the qt terminal using its built in export
png, jpg and gif have lines :
But if exported as vector graphics (svg or pdf), again the screen rendering will depend on the viewer used (okular no lines, acrobat reader 9 has them), with some renderers having no lines: check here how your browser behaves (firefox, chromium, epiphany on my linux box are all line-free)
Output of show pm3d:
pm3d style is explicit (draw pm3d surface according to style)
pm3d plotted at SURFACE
taking scans direction automatically
subsequent scans with different nb of pts are flushed from BEGIN
flushing triangles are not drawn
clipping: all 4 points of the quadrangle in x,y ranges
pm3d quadrangles will have no border
steps for bilinear interpolation: 1,1
quadrangle color according to averaged 4 corners

Octave: transparent surfaces, how?

I try to plot transparent surfaces in Octave using facealpha set to 0.2.
Ok, I have read that this is not implemented, but if I run this code, I get
a plot with a transparent plane.
`
close all;
clf reset;
cla reset;
graphics_toolkit("gnuplot");
colormap(bone(64));
a1=-1;b=1;h1=0.01;# making a mesh
x2=a1:h1:b;
nz2=length(x2);
[X1,Y1]=meshgrid(x2,x2);
Z1=zeros(nz2,nz2); # function equal to zero on the mesh
s1=mesh(X1,Y1,Z1);
view([120 40]);
# properties of the faces and edges
set(s1,'edgecolor','none')
set(s1,'facecolor','black')`
set(s1,'facealpha',0.05)
hold on
scatter3([-0.5 0],[-0.5 0],[0.5 -0.5],8,'k','.');# two points one above # and one below the plane
# print to eps
print -deps testsurface.eps
`
this figure pops up and if I save it the plane remains transparent:
but if I look at the printed version with the print command, I get
this with a non-transparent plane, one point is now invisible:
Is it possible to get the transparent plane with the print command or do I have always to save the pop-up plot window?
I am Edit:running Octave 4.02 on Xubuntu 16.04.
EDIT: If I try it with fltk, same result, with qt the plane vanishes.

Android plot demo app orientation sensor example history plot line thickness

I have been unable to alter the plot line thickness for the History plot in the Orientation sensor Example (OrientationSensorExampleActivity.java)
None of the other queries about line thickness seem to be with the FastLineAndPointRenderer.
Is there an easy way to do this?
I need to make the plot lines thinner (a 100th of the overall height)
Thanks
Dean
The thickness of all lines in Androidplot are controlled by an instance of Paint. In the case of lines drawn by a Renderer (of any kind), it's the formatter that will contain the Paint instance.
Here's an example of setting the line thickness for a formatter used to draw a series with FastLineAndPointRenderer:
FastLineAndPointRenderer.Formatter formatter = new FastLineAndPointRenderer.Formatter(Color.RED, null, null);
formatter.getLinePaint().setStrokeWidth(PixelUtils.dpToPix(3));
plot.addSeries(azimuthHistorySeries, formatter);

OpenLayers 3: align/rotate labels with line features

Is it possible to align/rotate text labels to a line feature? For example, if a line runs southwest to northeast (45 degrees), then the text placement should also be 45 degrees? Is this possible? I did look through the OL documentation but couldn't find anything of this nature.
You can't make a label "follow" a line in OpenLayers 3, but you can rotate it. See in this example: http://openlayers.org/en/latest/examples/vector-labels.html
Try setting the "Rotation" then hit the refresh button and you'll see the label being rendered on that angle.
If you use a style function, you could calculate the average angle of the line to determine the angle to render its label.

Resources