first 1d plotting
merged with filipes changes