mesa icon indicating copy to clipboard operation
mesa copied to clipboard

How to remove Gridlines

Open SHSEngineering opened this issue 4 years ago • 4 comments

I am trying to remove the gridlines but haven't been able to ... I've explored the javascript files and the css files, but haven't found out where I can change the code to either remove the gridlines or make them invisible. Is there someone who might be able to provide insight into this??? i've attached a pic of the grid as it currently looks ... Ideally, I'd like to keep the grid lines but make them invisible.

Capture

SHSEngineering avatar Jul 30 '20 23:07 SHSEngineering

Just comment out line 31 in CanvasModule.js file:

https://github.com/projectmesa/mesa/blob/2e66e9f70f9b4c58d90654ba590fc011263c483c/mesa/visualization/templates/js/CanvasModule.js#L31

Maybe I'll create a pull request to make drawing the grid line optional, controlled by a boolean parameter passed to CanvasGrid class? (but only after I defend my thesis in a couple of weeks!)

majdal avatar Jan 09 '21 02:01 majdal

@majdal good luck on your thesis defense! Whenever you have a moment -- we welcome the contribution!

jackiekazil avatar Feb 04 '21 05:02 jackiekazil

@majdal I had done that , but the gridlines line still existed. Can you help me? Thanks very much!

LelandYan avatar Nov 24 '21 13:11 LelandYan

@LelandYan Have you made sure to force-refresh the page when it reruns (e.g. Ctrl/Cmd-F5)? Sometimes browsers cache some of the underlying JavaScript, and use the older version even when you've updated the code.

dmasad avatar Nov 28 '21 14:11 dmasad

Closing because https://github.com/projectmesa/mesa/issues/875#issuecomment-757079079 has the solution.

rht avatar Aug 07 '23 04:08 rht