scale plot

Asked by Melanie Jahny

I'd like to plot the solution of my equation (its navier-stokes)
but my mesh is quiet thin and very large (it's 2D). So it would be more
clear if I could scale the y-axis in a different scala than the x-axis.
Is there any possibility in FEniCS to do that? Perhaps there are any
parameters for the plot-command?

mesh = Rectangle(0,0,155,0.78, 155, 10)
u = TrialFunction(VectorFunctionSpace(mesh, "CG",2))
 ....
plot(u, title="Velocity", rescale=True, axes=True)

It would be great if there was any possibility to do that.
Thanks for any help!

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Patrick Riesen (priesen) said :
#1

if you export your solution(s) to Paraview VTK files (.pvd), you can
read them in in Paraview and make plots and scale the axes independently.

patrick

On 03/15/2011 01:48 PM, Melanie Jahny wrote:
> New question #149165 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/149165
>
> I'd like to plot the solution of my equation (its navier-stokes)
> but my mesh is quiet thin and very large (it's 2D). So it would be more
> clear if I could scale the y-axis in a different scala than the x-axis.
> Is there any possibility in FEniCS to do that? Perhaps there are any
> parameters for the plot-command?
>
> mesh = Rectangle(0,0,155,0.78, 155, 10)
> u = TrialFunction(VectorFunctionSpace(mesh, "CG",2))
> ....
> plot(u, title="Velocity", rescale=True, axes=True)
>
> It would be great if there was any possibility to do that.
> Thanks for any help!
>

Can you help with this problem?

Provide an answer of your own, or ask Melanie Jahny for more information if necessary.

To post a message you must log in.