fixed a bug when there is only one color for edges.
single color edge palette works
fixed double axes bug.