Can grid rotate?

For example, if I type
grid rotate 45
grid on
, a grid which rotates by 45 degrees will be shown. Can grid in Matlab rotate? Thanks.

7 comentarios

Walter Roberson
Walter Roberson el 12 de Mayo de 2019
Aggg, entered a few paragraphs of response but my finger clicked just the wrong spot as I fell asleep ?
Walter Roberson
Walter Roberson el 12 de Mayo de 2019
Of the following, which is important to you in the final result:
  • plot and axes both must look rotated by 45 degrees
  • axes lines must look rotated by 45 degrees but plot must look unrotated
  • zoom
  • pan
  • data cursor must report coordinates in the unrotated system
  • data cursor must report coordinates in the rotated system
  • when graphics objects have their properties queried they must report the unrotated coordinates
  • when graphics objects have their properties queried they must report the rotated coordinates
  • only basic matlab can be used, and not the Mapping toolbox
  • Ticks must display as the unrotated system
  • ticks must display as the rotated system
  • only single axes solutions are permitted
  • solutions that require control of figure level callbacks are not permitted
  • angled lines must be at positions dependent on axes tick locations
  • angled lines must be at positions independent of axes tick locations
  • angled lines not permitted to be independent graphics object
zzzhhh
zzzhhh el 14 de Mayo de 2019
Fortunately you are not Matlab developer, so your limited capability will not limit the improvement of Matlab.
madhan ravi
madhan ravi el 15 de Mayo de 2019
zzzhh there was completely no need for a rude reply, that tone of replying to a essential contributor of this forum would not be tolerated.
Walter Roberson
Walter Roberson el 15 de Mayo de 2019
The capability to improve MATLAB depends in significant part on users clearly express their needs, preferably originally, but if not then at least after being presented with questions of clarification.
Bhanu Pratap Singh
Bhanu Pratap Singh el 26 de Feb. de 2021
@Walter Roberson Is there any way that the grid can be rotated? If not, whether MATLAB is planning to add that feature? Thanks.
Walter Roberson
Walter Roberson el 26 de Feb. de 2021
Bhanu: yes, grids can be rotated, for some definitions of rotated. I posted a number of clarification questions above that need to be answered in order to create an appropriate implementation.
Displaying a rotated grid somehow is not especially difficult. But is what is displayed in the axes to be rotated as well? Is data cursor / data tips to work on the old coordinates or the new ones? Are there any constraints such not being permitted to use a second axes for some reason? Is it ok to Re-parent objects if needed? Do you need to mix rotated coordinates and non-rotated? If there is existing text then should it rotate as well or does it need to appear horizontal / vertical?

Iniciar sesión para comentar.

Respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 12 de Mayo de 2019

0 votos

What is the purpose of rotating grids in your plot figure? Maybe you don't need to rotate grid but to rotate your plot data by 45?

3 comentarios

zzzhhh
zzzhhh el 12 de Mayo de 2019
Then I will have to rotate my head (or my monitor) by 45 degree.
Bhanu Pratap Singh
Bhanu Pratap Singh el 26 de Feb. de 2021
Editada: Bhanu Pratap Singh el 26 de Feb. de 2021
@Sulaymon Eshkabilov I have one purpose to rotate the grid. I have points on my plot which represent seismic shots and seismic receivers (needed for seismic data acquisition for finding crude oil or natural gas etc). I am plotting the northing and east of the shots and the receivers. Receivers are aligned in various parallel lines which are 45 degrees to the horizontal. I need to plot the midpoints of all shots and all receivers and count their numbers in each grid bin. But, the grid needs to be aligned to the receivers (or in other words all the bins are needed to be aligned with the receiver arrays and then the number of midpoints falling in each grid bin should be counted).
Walter Roberson
Walter Roberson el 26 de Feb. de 2021
But that involves rotation of coordinates for data analysis, not rotation for display, which is what this Question is about.

Iniciar sesión para comentar.

Productos

Etiquetas

Preguntada:

el 12 de Mayo de 2019

Comentada:

el 26 de Feb. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by