Spacing between heatmap point - leaflet

I tried to customise leaflet heatmap.js to render rectangles to generate a heatmap. I was doing good so far. But, there are spacing in between rectangles that I can't get rid of. As in the picture.
heatmap
Solutions that I tried: turn off antialiasing, add offset. While adding offset remove the space, it creates an area with "blended color" which I don't want to have. I wonder if there is a solution to remove the gap or remove the blending color in heatmap.js.
Thanks and regards.

Turn out it is precision problem of the leaflet latlong to screen coordinate function. I have fixed it by recalculate the coordinate.

Related

Draw a line and color it based on direction

Is it possible to draw a line similar to the example below and color it based on the previous value?
So to have the color red when the line is moving down and green when it goes up.
Can this be done with line type? Or does it need to be drawn with markLine or something else?
Any help is much appreciated!
https://echarts.apache.org/examples/en/editor.html?c=dynamic-data2
I don't think it is possible with the line chart, as the whole line uses the same color for all points. I suggest you use a scatter type chart where each point can have a different color. By setting symbol size to a small value and drawing values close together you can emulate visual line.
Here is an example based on the regression sample from echarts site:

Setting the CRS for non-geographical svg map

I'm trying to show a custom non-geographical map with CRS.simple as explained here:
In a CRS.Simple, one horizontal map unit is mapped to one horizontal
pixel, and idem with vertical
However, I wish to use an SVG vector image as an overlay, but I don't get how the map unit is decided in this case, since the vector images don't really have a resolution?
Also, how could set the CRS origin's location to a specific point?
Thanks for helping

Echarts : Heatmap tiles cut on edges

Echarts version : 4.8
I'm using scatter and heatmap series on the same map.
The problem is that on the right border the heatmap are cut until the last point.
How can I display the full heatmap tiles ? what am I missing here ?
Thanks
It is difficult to determine the problem from your picture, it would be easier with the configuration code, but I will try.
Try to add to the chart config the grid option. With grid you will can control padding of the visual chart part against outside space.
https://echarts.apache.org/en/option.html#grid
You need to change left, right, bottom and top options to move the edges.

If I have 4 coordinates making a rectangle, how can I color in that area?

I have 4 coordinates assigned to variables, so I would just like to colour in the rectangle that is created from these variables. I tried the fill function, but I cant gather much information from the example.
When I try to use:
fill(bottom left point, top right point,'g')
the figure it makes only shows a line between those points, and doesn't colour in the entire area.
I'm using MATLAB R2019b, if that helps.
Also, if its possible to fill the rectangle with a pattern instead, please let me know aswell.
Thanks in advance

Using core-plot ios sdk is it possible to draw inner circle

Using core plot pie chart i am able to produce this. However i want to fill the inside rect with some color is it possible?. i have used same source http://stackoverflow.com/questions/17697300/coreplot-ios-remove-border-line-around-pie-chart..
kindly suggest the other possibilities also.
Make a second pie chart with a radius equal to the inner radius of the ring. Give it a single slice filled with the desired background color.