[Date Prev][Date Next][Index][Thread]
[SGT Mail Archive]
[SGT Main Page]
my first impression with SGT
I have produced very nice plots
with SGT with less than a week time. Many thanks to Donald and whoever
else worked on the whole package. Whenever I have question, I send
out e.mail but at the same time keep working on it by myself and so far
it is going great. I found it quite easy to navigate around the source
files to look for answer. So far, I have had difficulty mainly on
placing a shapefile or some sort of coastline on a gridded
image. I had to create my own copy of JPlotLayout.setCoastline in order
to get this part fixed. I thing there is a bug at line
coastLayer_ = new Layer("CoastLine",
new Dimension2D(xSize_, ySize_)); in JPlotLayout. For some reason
xSize_ and ySize are returning firstLayer's dimensions.
My other trouble point was the color
bar ( which is still problem). I want to have color bar with area_fill
option too. I have created my own copy of JPlotLayout in order to
add this functionality in there. I set up my own color table as
int the following piece
ColorMap
cmap = createColorMap(datar,ncontours);
gridAttr_
= new GridAttribute(GridAttribute.AREA_FILL_CONTOUR,cmap);
gridAttr_.setColorMap(cmap);
gridAttr_.setContourLevels(clevels);
where ncontours is my number of contours
and create ColorMap picks ncontours+2 colors when creating cmap. However,
cmap that comes out from calls to gridAttr.getColorMap in
JPlotLayout is different. Or there is a place where cmap is modified to
original color table.
Thanks again to all who took
in part in this project...
regards
nc
Privacy Notice,
External Links Disclaimer.